File: complex.mustache

package info (click to toggle)
mustache.js 3.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,144 kB
  • sloc: javascript: 1,518; ruby: 61; sh: 17; makefile: 14
file content (16 lines) | stat: -rw-r--r-- 262 bytes parent folder | download | duplicates (9)
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}}