Skip to content

Commit

Permalink
ampproject#862 Provide component and version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelovani committed Jan 10, 2019
1 parent 01dae26 commit 940488b
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 15 deletions.
65 changes: 52 additions & 13 deletions templates/land-see/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,60 @@
"title": "Land + See",
"canonical-path": "templates/land-see/land-see.amp",
"extensions": [
"amp-carousel",
"amp-sidebar",
"amp-accordion",
"amp-instagram",
"amp-list",
"amp-form",
"amp-anim",
"amp-animation",
"amp-position-observer",
"amp-bind",
"amp-youtube",
"amp-fx-flying-carpet"
{
"component": "amp-carousel",
"version": "0.1"
},
{
"component": "amp-sidebar",
"version": "0.1"
},
{
"component": "amp-accordion",
"version": "0.1"
},
{
"component": "amp-instagram",
"version": "0.1"
},
{
"component": "amp-list",
"version": "0.1"
},
{
"component": "amp-form",
"version": "0.1"
},
{
"component": "amp-anim",
"version": "0.1"
},
{
"component": "amp-animation",
"version": "0.1"
},
{
"component": "amp-position-observer",
"version": "0.1"
},
{
"component": "amp-bind",
"version": "0.1"
},
{
"component": "amp-youtube",
"version": "0.1"
},
{
"component": "amp-fx-flying-carpet",
"version": "0.1"
}
],
"templates": [
"amp-mustache"
{
"component": "amp-mustache",
"version": "0.2"
}
],
"css-path": "templates/land-see/page.css",
"font-stylesheets": [
Expand Down
4 changes: 2 additions & 2 deletions utils/amp-extension-script.snip.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
}}

{{#extensions}}
<script custom-element="{{.}}" src="https://cdn.ampproject.org/v0/{{.}}-0.1.js" async></script>
<script custom-element="{{component}}" src="https://cdn.ampproject.org/v0/{{component}}-{{version}}.js" async></script>
{{/extensions}}

{{#templates}}
<script custom-template="{{.}}" src="https://cdn.ampproject.org/v0/{{.}}-0.1.js" async></script>
<script custom-template="{{component}}" src="https://cdn.ampproject.org/v0/{{component}}-{{version}}.js" async></script>
{{/templates}}

0 comments on commit 940488b

Please sign in to comment.