mirror of
https://github.com/cupcakearmy/cometa.git
synced 2025-03-12 14:27:28 +00:00
Test views
This commit is contained in:
parent
80c1a8127c
commit
5c06c17b95
1
test/views/comment_1.html
Normal file
1
test/views/comment_1.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
<div>{{# test #}}</div>
|
22
test/views/comment_2.html
Normal file
22
test/views/comment_2.html
Normal 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
3
test/views/if_1.html
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{{? myVar }}
|
||||||
|
<span>Result: {{ myVar }}</span>
|
||||||
|
{{/?}}
|
0
test/views/if_2.html
Normal file
0
test/views/if_2.html
Normal file
5
test/views/loop_1.html
Normal file
5
test/views/loop_1.html
Normal 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
25
test/views/mixed_1.html
Normal 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
1
test/views/var_1.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{myVar}}
|
1
test/views/var_2.html
Normal file
1
test/views/var_2.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{obj[0].title}}
|
Loading…
x
Reference in New Issue
Block a user