Help for this page

Select Code to Download


  1. or download this
        
      # generate a new template handler
      my $th=Template::YetAnother->new
    ...
       <p>foo bar</p>
       <hr>
       Thu Nov  7 21:51:05 200
    
  2. or download this
          my $th=Template::YetAnother->new({
                                    template_dir=>'/path/to/templates/',
    ...
                                    # start_tag=>'<--',
                                    # end_tag=>  '-->',
                                    });
    
  3. or download this
          $th->fill($data);
    
  4. or download this
          my $fragment=$th->_gen('type',$data)
    
  5. or download this
          $th->type($data)
    
  6. or download this
    --
    #!/usr/bin/perl
    for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}