Dear [customer name],<br><br>
Thank you for your order. Your items will be shipped soon<br><br>
[--
this is a comment
that should be removed
--]
[something wrong] [customer age]<br><br>
<ul>
[repeat items]
<li>
[item name]: [item price]
[if discount is available] [-- this is a comment too --]
(Discount: [discount value])
[else]
(No Discount)
[end if]
</li>
[end repeat]
</ul>
<br><hr>
Total: [order total] [if order is paid](paid)[end if]<br><br>
Thanks<br>
[brand name]
{
"brand": {
"name": "My Brand"
},
"customer": {
"name": "Customer Name"
},
"items": [
{
"item": {
"name": "Item 1",
"price": "$100"
},
"discount": {
"available": true,
"value": "5%"
}
}
],
"order": {
"total": "$185"
}
}
xxxxxxxxxx
{
"brand": {
"name": "Zetmel"
},
"customer": {
"name": "John"
},
"items": [
{
"item": {
"name": "Item 1",
"price": "$100"
},
"discount": {
"available": true,
"value": "5%"
}
},
{
"item": {
"name": "Item 2",
"price": "$85"
},
"discount": {
"available": false,
"value": 0
}
}
],
"order": {
"total": "$185",
"paid": true
}
}