Help for this page

Select Code to Download


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