October 2017
Intermediate to advanced
370 pages
8h 57m
English
As its name suggests, amp-list is good for processing lists. Let's go back to our product page and add a list of related products to the bottom. This is a good fit for amp-list because it means we can deliver dynamic content in our AMP pages, even when served via the AMP Cache.
To start with, we'll set up the server to respond with a JSON array of related products like this (full JSON listing at /ch7/related-products.json):
{ "items":[ { "product_id":"tshirt-2", ...Read now
Unlock full access