File: complex.mustache

package info (click to toggle)
mustache.js 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 684 kB
  • ctags: 95
  • sloc: ruby: 222; makefile: 11
file content (16 lines) | stat: -rw-r--r-- 261 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<h1>{{header}}</h1>
{{#list}}
  <ul>
  {{#item}}
  {{#current}}
  <li><strong>{{name}}</strong></li>
  {{/current}}
  {{#link}}
  <li><a href="{{url}}">{{name}}</a></li>
  {{/link}}
  {{/item}}
  </ul>
{{/list}}
{{#empty}}
  <p>The list is empty.</p>
{{/empty}}