Skip to content

Latest commit

 

History

History
26 lines (24 loc) · 697 Bytes

README.md

File metadata and controls

26 lines (24 loc) · 697 Bytes

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!