Parcourir la source

add a (failing for now) example of loop inside a partial

tags/0.2.3
Damien Mathieu il y a 16 ans
Parent
révision
2d574f70dc
4 fichiers modifiés avec 18 ajouts et 0 suppressions
  1. +6
    -0
      examples/array_partial.2.html
  2. +1
    -0
      examples/array_partial.html
  3. +5
    -0
      examples/array_partial.js
  4. +6
    -0
      examples/array_partial.txt

+ 6
- 0
examples/array_partial.2.html Voir le fichier

@@ -0,0 +1,6 @@
Here's a non-sense array of values

{{%IMPLICIT-ITERATOR}}
{{#array}}
{{.}}
{{/array}}

+ 1
- 0
examples/array_partial.html Voir le fichier

@@ -0,0 +1 @@
{{>partial}}

+ 5
- 0
examples/array_partial.js Voir le fichier

@@ -0,0 +1,5 @@
var partial_context = {
partial: {
array: ['1', '2', '3', '4']
}
};

+ 6
- 0
examples/array_partial.txt Voir le fichier

@@ -0,0 +1,6 @@
Here's a non-sense array of values

1
2
3
4

Chargement…
Annuler
Enregistrer