amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

[amp-date-countdown inside amp-list] - 'template' may not appear as a descendant of tag 'template`

Open leonahliang90 opened this issue 8 years ago • 3 comments

Hey guys, we are currently facing an issue, we are getting The tag 'template' may not appear as a descendant of tag 'template validation error when we are trying to wrap a <template> of <amp-date-countdown> inside the <template> of <amp-list>

image

Everything works fine besides the validation, any workaround or suggestions please ?

leonahliang90 avatar Sep 26 '18 12:09 leonahliang90

Try using the template attribute instead. https://github.com/ampproject/amphtml/blob/master/extensions/amp-mustache/amp-mustache.md#nested-templates

Related: #18360

dreamofabear avatar Sep 26 '18 15:09 dreamofabear

Just reference templates by ID via the template="<id>" do not change the state of things. Besides this the tag amp-count-down do not accept attribute template="templateid" -> The attribute 'template' may not appear in tag 'amp-date-countdown' So this issue keep with no workaround.

lucasdalloglio avatar Sep 26 '18 19:09 lucasdalloglio

Reopened #18360 to track the support of template attribute in amp-date-countdown. Closing this issue as a duplicate.

dreamofabear avatar Sep 26 '18 19:09 dreamofabear