{
firstName: 'Jack',
lastName: 'Shephard',
status: 'lost',
}
you can use it in the template as follows:
<h3>Passenger information:</h3>
<div>Name: {{ lastName }}, {{ firstName }}</div>
<div>Status: {{ status }}</div>
The final result will be this:
{ passengers:
[
'Jack',
'John',
'Kate',
'Sawyer',
'Hurley',
'Sayid',
'Charlie',
'Claire',
'Michael',
'Shannon',
'Jin-Soo',
'Sun-Hwa',
'Boone',
'Walter',
]
};
you can use it like this in the template:
<h3>Passengers</h3>
<ol>
{% for passenger in passengers %}
<li>{{ passenger }}</li>
{% endfor %}
</ol>
This renders to: