adding test for empty array
This commit is contained in:
parent
995fa15e66
commit
d95bff3116
|
@ -7,10 +7,12 @@
|
|||
<body>
|
||||
<h1>{{title}}</h1>
|
||||
<p>Here are all my {{things}}:</p>
|
||||
{{#tests?}}
|
||||
<ul>
|
||||
{{#tests}}
|
||||
<li class="{{class}}"><strong>{{object.id}} (class {{class}}):</strong> ({{object.name}}:{{object.value}})</li>
|
||||
{{/tests}}
|
||||
</ul>
|
||||
{{/tests?}}
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue