Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pintariching/rubil
A HTML builder written in rust
https://github.com/pintariching/rubil
html rust
Last synced: about 2 months ago
JSON representation
A HTML builder written in rust
- Host: GitHub
- URL: https://github.com/pintariching/rubil
- Owner: pintariching
- License: mit
- Created: 2022-09-14T15:38:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-14T15:50:24.000Z (over 2 years ago)
- Last Synced: 2023-03-05T03:51:50.434Z (almost 2 years ago)
- Topics: html, rust
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# rubil
Build HTML without writing HTML. A small project I want to work on for fun. Are you fed up with breaking your fingers when
writing brackets, equal signs and back slashes like
```html
- Owie
- my
- fingers.
```
you can write your HTML without ever opening a bracket with `rubil`! For example the above turns into
```rust
let html: String = Div::new()
.class("container")
.ul(|ul| ul
.li("Owie")
.li("my")
.li("fingers"))
.build;
```# Work in progress :construction:
This crate is very much a work in progress. You're welcome to share your ideas or contribute in any way you'd like!