mirror of
https://github.com/cupcakearmy/cometa.git
synced 2025-03-12 14:27:28 +00:00
Example Code
This commit is contained in:
parent
cbf94c1fb6
commit
5558ee107d
@ -14,6 +14,13 @@ app.get('/', (req, res) => {
|
||||
}, {
|
||||
show: false,
|
||||
msg: 'I\'m hidden :(',
|
||||
}, {
|
||||
show: true,
|
||||
msg: 'I\'m super',
|
||||
comments: [
|
||||
'Amazing!',
|
||||
'No way?'
|
||||
]
|
||||
}],
|
||||
})
|
||||
})
|
||||
|
@ -6,11 +6,25 @@
|
||||
|
||||
<h1>{{title}}</h1>
|
||||
|
||||
{{# Ignore Me! #}}
|
||||
|
||||
<ul>
|
||||
{{* i in arr}}
|
||||
|
||||
{{? i.show }}
|
||||
<li>{{i.msg}}</li>
|
||||
<li>
|
||||
{{i.msg}}
|
||||
|
||||
{{? i.comments}}
|
||||
<ul>
|
||||
|
||||
{{* comment in i.comments}}
|
||||
<li>{{comment}}</li>
|
||||
{{/*}}
|
||||
|
||||
</ul>
|
||||
{{/?}}
|
||||
</li>
|
||||
{{/?}}
|
||||
|
||||
{{/*}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user