{capture name="template-album-list-item"}{literal}
  • {%#o.name%} {% if (o.status <= 0) { %}{% } %}
  • {/literal}{/capture} {capture name="template-tag-cloud"}{literal} {% for (var i = 0, n = o.cloud.length, tag = o.cloud[i]; i < n; tag = o.cloud[++i]) { %} {%=tag.name%} {% } %} {/literal}{/capture} {* js templates block*} {foreach $smarty.capture as $template => $template_content} {if $template_content && (strpos($template, 'template-')===0)} {capture name=$template}{/capture} {/if} {/foreach}