Help for this page

Select Code to Download


  1. or download this
    <div>
    Number<%= $data->{ box } %>
    Test: <%= $test %> 
    </div>
    
  2. or download this
    ...
    my $mt = Mojo::Template->new( vars => 1, auto_escape => 1 );
    ...
    my $code = "PERL";
    print $q->header( -charset => 'utf-8' ), $mt->render_file( myfile.html
    +.ep,  { data => $data }, { test => $code } );
    ...
    
  3. or download this
    Global symbol "$test" requires explicit package name at myfile.html.ep