2016-09-22 11:12:07 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>Handlebars Demo</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Hi {{name}}</h1>
|
|
|
|
<h3>Here are your items:</h3>
|
|
|
|
<ul>
|
|
|
|
{{#each items}}
|
2017-05-19 10:29:08 +00:00
|
|
|
<li>{{this}}</li>
|
2016-09-22 11:12:07 +00:00
|
|
|
{{/each}}
|
|
|
|
</ul>
|
2016-09-30 04:41:21 +00:00
|
|
|
|
|
|
|
<p>Try going to <a href="/hello/YourName">/hello/YourName</a></p>
|
2017-09-16 05:34:33 +00:00
|
|
|
<p>You can define custom helper like <b>{{echo "this"}}</b>.</p>
|
2016-09-22 11:12:07 +00:00
|
|
|
</body>
|
|
|
|
</html>
|