-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Summary
We propose amp-render - component that fetches and renders remote or inline JSON data with these features:
- render any shape of data (supported by mustache templates)
- customizable with JS to enable developers roll out their own features
- support layout="container"
Design document
Motivation
Currently, AMP developers have amp-list component to fetch and render remote data. While amp-list satisfies various use cases for rendering list data and offers features like infinite scroll and pagination, over time it has become complex to understand, maintain, and document. Plus, as developers have requested new functionality, we have provided new features leading to a slew of new attributes (e.g. single-item) and auxiliary components (e.g. amp-list-load-more). With amp-render we want to give developers the flexibility to render any shape of data, support layout="container" and add new features using JS leading to a simpler interface.
Additional context
Launch tracker
/cc @ampproject/wg-approvers