ampproject / ampstart

AMP Start source code and templates .
https://ampstart.com/
Apache License 2.0
418 stars 151 forks source link

Auto extension import #892

Closed sebastianbenz closed 4 years ago

sebastianbenz commented 4 years ago

Two related changes:

  1. Support extension import via attribute

Some extensions, such as amp-video-docking, add new attributes (e.g. dock) to existing AMP tags (e.g. amp-video). This commit will automatically import the required extensions for these attributes.

This add support for:

  1. amp-bind auto-import

Caveat: both only work on AMP tags, but not on non-AMP tags such as div.