Html tags helper - aadlani/nanoc-toolbox GitHub Wiki
Simple HTML Tag generator
http://rubydoc.info/github/aadlani/nanoc-toolbox/Nanoc/Toolbox/Helpers/HtmlTag
In the folder lib/helpers_.rb
add the Helper inclusion as following:
# Helpers of the nanoc-toolbox
include Nanoc::Toolbox::Helpers::HtmlTag
tag("br")
<br />
tag("hr", class => "thin", true)
<hr class="thin">
tag("input", :type => 'text')
<input type="text" />
content_tag(:p, "Hello world!")
<p>Hello world!</p>
content_tag(:div, content_tag(:p, "Hello world!"), :class => "strong")
<div class="strong">
<p>Hello world!</p>
</div>