Hobo Cookbook

View Source



A proposed HTML 5 tag for representing a generic document or application section. Slightly more semantic than <div> for indicating document structure. For the time being, <section> is output as <div class="section">. In Hobo, <section> also has one other important behaviour which is different to using <div> directly, when the content of the section is empty, the wrapper tag will disappear. e.g.

<section>My Section</section> -> <div class="section">My Section</div>
<section><% # empty %></section> -> (nothing is generated)

Show Source


No Comments to display