mirror of
https://github.com/pantor/inja.git
synced 2026-03-06 17:26:24 +00:00
initial codebase
This commit is contained in:
1
test/data/include.txt
Normal file
1
test/data/include.txt
Normal file
@@ -0,0 +1 @@
|
||||
Answer: (% include "simple.txt" %)
|
||||
11
test/data/nested.txt
Normal file
11
test/data/nested.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
^{% 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"] = []
|
||||
1
test/data/simple.txt
Normal file
1
test/data/simple.txt
Normal file
@@ -0,0 +1 @@
|
||||
Hello {{ name }}.
|
||||
Reference in New Issue
Block a user