Rocket/examples/handlebars_templates/templates/index.hbs

20 lines
385 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="/hello/YourName">/hello/YourName</a>.</p>
<p>Also, check {{ wow "this" }} (custom helper) out!</p>
</section>
{{/inline}}
{{~> (parent)~}}