Handlebars

x
 
1
{{> breadcrumbs}}
2
3
{{!--
4
  You can use the t function to get
5
  content translated to the current locale, es:
6
  {{t 'article_list'}}
7
--}}
8
9
<h1>{{t 'article_list'}}</h1>
10
11
{{! one line comment }}
12
13
{{#each articles}}
14
  {{~title}}
15
  <p>{{excerpt body size=120 ellipsis=true}}</p>
16
17
  {{#with author}}
18
    written by {{first_name}} {{last_name}}
19
    from category: {{../category.title}}
20
    {{#if @../last}}foobar!{{/if}}
21
  {{/with~}}
22
23
  {{#if promoted.latest}}Read this one! {{else}} This is ok! {{/if}}
24
25
  {{#if @last}}<hr>{{/if}}
26
{{/each}}
27
28
{{#form new_comment}}
29
  <input type="text" name="body">
30
{{/form}}
31
32

Handlebars syntax highlighting for CodeMirror.

MIME types defined: text/x-handlebars-template