Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: generating html from a template

by davidrw (Prior)
on Oct 04, 2005 at 21:37 UTC ( [id://497417]=note: print w/replies, xml ) Need Help??


in reply to generating html from a template

Two very popular and common templating modules are Template Toolkit and HTML::Template -- i would start by looking at both of those.. Template Toolkit (tt) is quite powerful, and has a (default) syntax like:
This is my file. Hello, [% first_name %]. You have [% rows.size %] items: [% FOREACH row = rows %] Name: [% row.name %] ; Color = [% row.color %] [% 'Wow!!!' IF ro +w.color == 'red' %] [% END %]

Log In?
Username:
Password:

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

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

    No recent polls found