- or download this
<span tal:condition="true:user/is_authenticated">
Yo, authenticated!
</span>
- or download this
[% IF user.is_authenticated %]
Yo, authenticated!
[% END %]
- or download this
<div class="auth_dialog">
<span sid="authed">
...
NOT authed
</span>
</div>
- or download this
use html::auth_dialog;
...
);
print $tree->as_HTML;
- or download this
<tag tal:repeat="element_name EXPRESSION">
blah blah blah
</tag>
- or download this
[% FOREACH s IN EXPRESSION %]
* [% s %]
[% END %]
- or download this
<div class="elemid">
blah blah blah
</div>
- or download this
my $li = $tree->look_down(class => 'elemid');
my @items = qw(bread butter vodka);
$tree->iter($li => @items);
- or download this
[tag://html,templating,seamstress]