Example Code

This commit is contained in:
nicco 2018-02-21 12:44:20 +01:00
parent cbf94c1fb6
commit 5558ee107d
2 changed files with 22 additions and 1 deletions

View File

@ -14,6 +14,13 @@ app.get('/', (req, res) => {
}, {
show: false,
msg: 'I\'m hidden :(',
}, {
show: true,
msg: 'I\'m super',
comments: [
'Amazing!',
'No way?'
]
}],
})
})

View File

@ -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>
{{/?}}
{{/*}}