summaryrefslogtreecommitdiff
path: root/tests/examplefiles/demo.hbs
blob: ae80cc1b613834904aec7f46ede68c952d68b959 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- post.handlebars -->

<div class='intro'>
  {{intro}}
</div>

{{#if isExpanded}}
  <div class='body'>{{body}}</div>
  <button {{action contract}}>Contract</button>
{{else}}
  <button {{action expand}}>Show More...</button>
{{/if}}

{{> myPartial}}
{{> myPartial var="value" }}
{{> myPartial var=../value}}
{{> (myPartial)}}
{{> (myPartial) var="value"}}
{{> (lookup . "myPartial")}}
{{> ( lookup . "myPartial" ) var="value" }}
{{> (lookup ../foo "myPartial") var="value" }}
{{> @partial-block}}

{{#>myPartial}}
...
{{/myPartial}}

{{#*inline "myPartial"}}
...
{{/inline}}

{{../name}}
{{./name}}
{{this/name}}