Test views

This commit is contained in:
nicco 2018-02-21 19:39:05 +01:00
parent 80c1a8127c
commit 5c06c17b95
8 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1 @@
<div>{{# test #}}</div>

22
test/views/comment_2.html Normal file
View File

@ -0,0 +1,22 @@
<div>{{# test{{# askdfjh
<a href="dsf
asd
f
asd
f
sad
f
ads
f
ad
fa
dsf"></a>
ads
f
f
sdf
s
#}}</div>

3
test/views/if_1.html Normal file
View File

@ -0,0 +1,3 @@
{{? myVar }}
<span>Result: {{ myVar }}</span>
{{/?}}

0
test/views/if_2.html Normal file
View File

5
test/views/loop_1.html Normal file
View File

@ -0,0 +1,5 @@
<ul>
{{* link in links}}
<li id="{{link.id}}">{{ link.name }}</li>
{{/*}}
</ul>

25
test/views/mixed_1.html Normal file
View File

@ -0,0 +1,25 @@
<h1>{{title}}</h1>
{{# Ignore Me! #}}
<ul>
{{* i in arr}}
{{? i.show }}
<li>
{{i.msg}}
{{? i.comments}}
<ul>
{{* comment in i.comments}}
<li>{{comment}}</li>
{{/*}}
</ul>
{{/?}}
</li>
{{/?}}
{{/*}}
</ul>

1
test/views/var_1.html Normal file
View File

@ -0,0 +1 @@
{{myVar}}

1
test/views/var_2.html Normal file
View File

@ -0,0 +1 @@
{{obj[0].title}}