Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
An example of foster parenting in AMP List.
JSON:
{
"items": [{
"prices": [
{
"priceType":"Cash",
"price": "1.99",
},
{
"priceType":"Card",
"price": "2.99",
},
{
"priceType":"BitCoin",
"price": "5.99",
}
]
}]
}
AMP List Template:
<template type="amp-mustache">
<table>
{{#prices}}
<tr>
<td>{{priceType}}:</td>
<td>$ {{price}}</td>
</tr>
{{/prices}}
</table>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.