I have created an amp-mustache template as shown below.
<template type="amp-mustache" id="amp-template-id">
<div>
<span>{{date}}</span>
<span>{{prev}}</span>
<span>{{open}}</span>
<span>{{low}}</span>
<span>{{high}}</span>
<span>{{last}}</span>
<span>{{vol}}</span>
</div>
</template>
This template in nested inside amp-list. amp-list has a source url (https and cross-origin) which is sending below JSON.
{ "date": "2018-08-03 14:40:09", "prev": 37165.16, "open": 37327.16, "low": 37319.61, "high": 37567.47, "last": 37557.93, "vol": 0 }
On loading the page I cannot see anything. In DOM I can only see this empty div.
<div class="i-amphtml-fill-content i-amphtml-replaced-content" role="list"></div>
I followed the example mentioned in this link. I also tried replacing variables in between span tag as "date", ${{date}}, "prev", ${{prev}} but nothing worked. Any help in this regard will be highly appreciated.
EDIT: Adding the amp-list portion of the code
<amp-list src="https://api.myjson.com/bins/133uw8" width="auto" height="auto" layout="responsive">
<template type="amp-mustache" id="amp-template-id2">
{{date}}----{{prev}}----{{open}}----{{low}}----{{high}}----{{last}}----{{vol}}
</template>
</amp-list>
Issue is here
width="auto" height="auto" layout="responsive"
Responsive Layout need width and height because Element sized to the width of its container element and resizes its height automatically to the aspect ratio given by width and height attributes.
Here is more information about which layout use width and height Click Here
amp-list
Support layout is : fill, fixed, fixed-height, flex-item, nodisplay, responsiveJson Should be like this : Click Here
Here is the working Url