jHaml (GitHub: soyuka/jhaml, License: MIT, npm: @soyuka/jhaml)
When I was still doing a lot of Rails I first got introduced to Haml. I was able to change
erb like this:
<section class=”container”> <h1><%= post.title %></h1> <h2><%= post.subtitle %></h2> <div class=”content”> <%= post.content %> </div> </section>
%section.container %h1= post.title %h2= post.subtitle .content = post.content
For more details and documentation check the README which thoroughly explains how it works and how to use it.
Don’t forget the submit this weeks challenge before Friday on when I will post the results.