Rocket/examples/handlebars_templates/templates/index.hbs

20 lines
385 B
Handlebars

{{#*inline "page"}}
<section id="hello">
<h1>Hi {{ name }}!</h1>
<h3>Here are your items:</h3>
<ul>
{{#each items}}
<li>{{ this }}</li>
{{/each}}
</ul>
</section>
<section id="custom-helper">
<p>Try going to <a href="/hello/YourName">/hello/YourName</a>.</p>
<p>Also, check {{ wow "this" }} (custom helper) out!</p>
</section>
{{/inline}}
{{~> (parent)~}}