Reputation: 27
Starting to code in a blogger page there are some concepts I have never come across. So to start with this simple code. You could assume the rest of the page is empty. What's necessary in a blogger's html? Where should I definitely not put certain parts of this code? Writing this alone wouldn't work right? Implement it in any way you like, I just need one way in which this code would work. Thanks for all the help!
<b:includable id='list'>
<b:loop values='data:foo' var='item'>
<li>
<data:item/>
</li>
</b:loop>
</b:includable>
<ol>
<b:include data='{ foo: ["Qux","Quux"] }' name='list'/>
<b:include data='{ foo: ["Corge","Graul"] }' name='list'/>
<b:include data='{ foo: ["Garply","Waldo"] }' name='list'/>
</ol>
Upvotes: 0
Views: 528
Reputation:
b:includable
and b:include
are widget tags so you can use them inside a widget.
In this example, you can see these tags used inside HTML widget.
<b:section id='sec'>
<b:widget id='HTML11' type='HTML' title='foo'>
<b:includable id='main'>
<ol>
<b:include data='{ foo: ["Qux","Quux"] }' name='list'/>
<b:include data='{ foo: ["Corge","Graul"] }' name='list'/>
<b:include data='{ foo: ["Garply","Waldo"] }' name='list'/>
</ol>
</b:includable>
<b:includable id='list'>
<b:loop values='data:foo' var='item'>
<li>
<data:item/>
</li>
</b:loop>
</b:includable>
</b:widget>
</b:section>
Hope it helps.
Upvotes: 2