mirror of
https://github.com/pantor/inja.git
synced 2026-05-05 12:35:24 +00:00
splitted tests, more unit tests
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
^{% for x in x_array %}
|
||||
{% for y in y_array %}
|
||||
{{x}}-{{y}}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
json a;
|
||||
a["type"] = loop|condition|include
|
||||
a["command"] = x in x_array
|
||||
a["innerString"] = "..."
|
||||
a["children"] = []
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"xarray": [0, 1],
|
||||
"yarray": [0, 1, 2]
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
0-0
|
||||
|
||||
0-1
|
||||
|
||||
0-2
|
||||
|
||||
1-0
|
||||
|
||||
1-1
|
||||
|
||||
1-2
|
||||
@@ -0,0 +1,3 @@
|
||||
(% for x in xarray %)(% for y in yarray %)
|
||||
{{x}}-{{y}}
|
||||
(% endfor %)(% endfor %)
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"name": "Jeff"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Hello Jeff.
|
||||
@@ -0,0 +1 @@
|
||||
Hello {{ name }}.
|
||||
Reference in New Issue
Block a user