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>
The big thing that stands out to me is your layout type and dimensions of your amp-list. I actually just put them into something I was working on and I get an error saying auto is invalid for the height value. This may be why nothing is rendering. Type responsive expects both a width and height and then it will constrain proportions when scaling.
For an amp-list you might be better suited to use a layout type of fixed-height or flex-item. If you use either you can leave your width undefined and then you just need to specify an exact height.
If you need your amp-list to have a somewhat dynamic height, check out the answer from Sebastian Benz in this thread.