Bläddra i källkod

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

tags/0.2.3
Damien Mathieu 16 år sedan
förälder
incheckning
2d574f70dc
4 ändrade filer med 18 tillägg och 0 borttagningar
  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 Visa fil

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

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

+ 1
- 0
examples/array_partial.html Visa fil

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

+ 5
- 0
examples/array_partial.js Visa fil

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

+ 6
- 0
examples/array_partial.txt Visa fil

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

1
2
3
4

Laddar…
Avbryt
Spara