使用Amp-carousel和Amp-mustache模板

1 mustache amp-html amp-mustache

尝试使用Mustache从JSON COR文件调用图像到amp-carousel.认为这应该很容易,但有一些问题.

<amp-list width=auto
          height=auto
          layout=fixed-height
          src="carousel.json">



                <template type="amp-mustache" id="amp-template-id">

                    <li>

                      <amp-carousel width="400"
                          height="244"
                          layout="fixed"
                          type="slides"
                          autoplay
                          delay="4000">  

                    <amp-img width="400"
                             height="244"
                             layout="fixed"
                             src="{{src}}"></amp-img>                     


                      </amp-carousel>
                </li>

                </template>


                <div overflow
                     role=button
                     aria-label="Show more"
                     class="list-overflow">
                    Show more
                </div>
            </amp-list>
Run Code Online (Sandbox Code Playgroud)

Seb*_*enz 5

这是不可能的,因为amp-list不能与amp-carousel结合使用:

https://github.com/ampproject/amphtml/issues/4405