in reply to Re: Re: Inserting a Value
in thread Inserting a Value
Check out these modules. All 3 are excellent.:
How you would use Template Toolkit:
Create a template 'my_template.tmpl':
<html> ... <body> Hello [% name %], how are you today </body> </html>
Your perl code:
#!/usr/bin/perl -w use strict; use Template; my $file = 'my_template.tmpl'; my $vars = { name => "Schmidy" }; my $template = Template->new(); $template->process($file, $vars) || die "Template process failed: ", $template->error(), "\n";
You get to seperate your presentation from your code. No more digging through html in your perl code.
grep
| Mynd you, mønk bites Kan be pretti nasti... |
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Re: Re: Re: Inserting a Value
by merlyn (Sage) on Apr 17, 2003 at 20:16 UTC |