Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

RFC: Templating without a System

by shmem (Chancellor)
on Jun 17, 2006 at 13:04 UTC ( [id://555958]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    All Perl code within source HTML files has to be embedded into
    standard HTML comment tags of one of the following forms:
    ...
    
    <!-- perl dummy start --> <!-- perl dummy end -->
        These tags and all characters in between are weeded out.
    
  2. or download this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "xhtml1-transitional.dtd">
    ...
        <!-- perl dummy end -->
      </body>
    </html>
    
  3. or download this
    #!/usr/bin/perl
    package My::Special::View;
    ...
        "Servlet Heading for a table",
        [[1,a],[2,b]]
    );
    
  4. or download this
    #!/usr/bin/perl
    package My::Special::View;
    ...
    print @lines;
    # direkt render & print
    $s->display("page","heading",[['foo',1,2],[bar,3,4],[quux,5,6]]);
    
  5. or download this
    #!/usr/bin/perl
    package My::Special::View;
    use Servlet qw(AUTOLOAD);
    example("sample servlet page","Servlet Heading for a table",
        [[1,a],[2,b]]);
    
  6. or download this
    #!/usr/bin/perl
    package My::Special::View;
    ...
            return @text;
        } 
    };
    
  7. or download this
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1
    +-transitional.dtd">
    <html>
    ...
        
      </body>
    </html>
    
  8. or download this
    package Servlet;
    
    ...
    1;
    
    __END__
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlmeditation [id://555958]
Approved by randyk
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2024-04-19 21:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found