Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: importing HTML code into perl

by growlf (Pilgrim)
on Oct 27, 2001 at 05:10 UTC ( [id://121719]=note: print w/replies, xml ) Need Help??


in reply to importing HTML code into perl

I have been heavily using HTML::Template lately for this purpose. It allows you to leave the HTML exactly as is, as filename.html but with an optional added ability to place dynamic HTML-like tags that are replaced with data from your application.

If You are using this for CGI - the use is obvious, but I have also been using it as a static HTML file generator for dynamic content quite nicely.

Check the terrific POD web reference at perldoc.com, http://www.perldoc.com/perl5.6.1/lib/HTML/Template.html for examples and documentation.

I have recently even found that the DBI does infact work with the Template module seemlesly and easily - if you need to hook it to a database: I have many examples now of simple, to advanced useage.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-03-28 21:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found