Rocket/examples/templating/templates/hbs/index.html.hbs

20 lines
397 B
Handlebars
Raw Normal View History

2018-03-24 15:43:06 +00:00
{{#*inline "page"}}
<section id="hello">
2018-07-02 21:11:09 +00:00
<h1>Hi {{ name }}!</h1>
2018-03-24 15:43:06 +00:00
<h3>Here are your items:</h3>
<ul>
{{#each items}}
2018-07-02 21:11:09 +00:00
<li>{{ this }}</li>
2018-03-24 15:43:06 +00:00
{{/each}}
</ul>
</section>
<section id="custom-helper">
<p>Try going to <a href="/hbs/hello/Your%20Name">/hbs/hello/Your Name</a>.</p>
2018-03-24 15:43:06 +00:00
<p>Also, check {{ wow "this" }} (custom helper) out!</p>
</section>
{{/inline}}
{{~> (parent)~}}