in reply to automatic Template component wrapper
When you define a template object, you have a large number of settings you can use.
What I suggest is that you declare the variables that you want to pass to the component. Then declare a POST_PROCESS which will process this template at the end of each page.
my $template = Template->new({
VARIABLES => {
component => {
name => 'script_name',
time => time(),
}
},
POST_PROCESS => 'component_info.tt'
});
Now you will not have to declare a WRAPPER after each web page. It will be done for you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: automatic Template component wrapper
by marvell (Pilgrim) on Mar 10, 2006 at 19:58 UTC |