<b:loop> Syntax and Attributes
Blogger XML Language
<b:loop index='STRING' values='ARRAY' var='STRING' reverse='BOOLEAN'> <!-- Repeat --> </b:loop>
<b:loop> Example
Post Article
<b:loop index='i' values='data:posts' var='post'> <div> <h3> <b:eval expr='data:i + 1' />. <data:post.title /> </h3> <div> <data:post.body /> </div> </div> </b:loop> <b:if>
HTML Rendered Result
1. This is Post Title
With String
<ul> <b:loop values='["Bar","Baz","Qux"]' var='foo' > <li> <data:foo/> </li> </b:loop> </ul>
Other Tag
- <b:attr>
- <b:case>
- <b:class>
- <b:comment>
- <b:default>
- <b:defaultmarkup>
- <b:defaultmarkups>
- <b:eval>
- <b:else>
- <b:elseif>
- <b:if>
- <b:include>
- <b:includable>
- <b:loop>
- <b:message>
- <b:param>
- <b:section>
- <b:skin>
- <b:switch>
- <b:tag>
- <b:template-script>
- <b:template-skin>
- <b:widget>
- <b:widget-setting>
- <b:widget-settings>
- <b:with>
- <![CDATA[]]>
- <data:.../>