Skip to content

Commit bf3afca

Browse files
committed
Some new examples.
1 parent 2dc3ae0 commit bf3afca

File tree

7 files changed

+49
-8
lines changed

7 files changed

+49
-8
lines changed

examples/README

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Mustang Template Examples
2+
=========================
3+
Here you will find a assortment of examples.
4+
5+
Templates ending with ".mustache" are fully compatible
6+
with Mustache[1] syntax.
7+
8+
Templates ending with ".mustang" use superset features
9+
of Mustang and will are NOT compatible with Mustache.
10+
11+
12+
[1] http://defunkt.github.com/mustache

examples/hash_lists.mustache

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Employee Info
2+
=============
3+
{{#employees}}
4+
Name: {{name}}
5+
DOB: {{dob}}
6+
Position: {{position}}
7+
Salary: ${{salary}}
8+
Vacation days left: {{vacationDaysLeft}}
9+
10+
{{/employees}}
11+
12+
Report generated: {{timeGenerated}}

examples/hash_lists.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
timeGenerated: 2010-03-16 16:00:00
3+
4+
employees:
5+
- name: Matt
6+
dob: 01/22/78
7+
position: Sales Manager
8+
salary: 70,000
9+
vacationDaysLeft: 5
10+
11+
- name: Bill
12+
dob: 10/11/80
13+
position: Senior Database Admin
14+
salary: 75,000
15+
vacationDaysLeft: 10
16+
17+
- name: Jane
18+
dob: 02/01/87
19+
position: Sales Associate
20+
salary: 38,000
21+
vacationDaysLeft: 4
22+
...
23+

examples/list.mustache

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2-
heading: Animals
2+
header: Animals
33
items: ["Dog", "Bear", "Cow", "Pig", "Bird"]
4+
footer: The End
45
...
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)