DelphiFAQ Home Search:

Embedding perl into HTML files like JSP or php

 

commentsThis article has not been rated yet. After reading, feel free to leave comments and rate it.

Question:

Is there a way to embed Perl programs in HTML the way PHP can do?

Answer:

  • HTML::Template
    Simple, does a good job of separating the content templates from the application logic; not as flexible as some others
  • HTML::Mason
    Puts the Perl right in with the HTML, like PHP does. This makes it very popular with some people, but is seen by others as defeating the purpose of using templates to begin with -- the idea being that you should always keep logic & presentation strictly separated.
  • Template::Toolkit
    Probably the most flexible framework, TT can be tuned to work in modes similar to both HTML::Template and Mason, and more. It's also suitable for non HTML/WWW work -- generation of about any kind of document, from ascii to LaTeX to PDF to Word & Excel, either dynamically on demand or statically in batches. TT is nice...
  • Embperl
    This one I don't know much about, but some people like it.


    Comments:

    2009-08-03, 19:43:05
    anonymous from Mexico  
    werw

     

     

    NEW: Optional: Register   Login
    Email address (not necessary):

    Rate as
    Hide my email when showing my comment.
    Please notify me once a day about new comments on this topic.
    Please provide a valid email address if you select this option, or post under a registered account.
     

    Show city and country
    Show country only
    Hide my location
    You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
    Please type in the code:

    Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
    The owner of this web site reserves the right to delete such material.

    photo Add a picture: