Skip to content

pintariching/rubil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

<div class="container">
  <ul>
    <li>Owie</li>
    <li>my</li>
    <li>fingers.</li>
  </ul>
</div>

you can write your HTML without ever opening a bracket with rubil! For example the above turns into

let html: String = Div::new()
  .class("container")
    .ul(|ul| ul
      .li("Owie")
      .li("my")
      .li("fingers"))
  .build;

Work in progress 🚧

This crate is very much a work in progress. You're welcome to share your ideas or contribute in any way you'd like!

About

A HTML builder written in rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages