Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^2: Template Toolkit Root Permission

by romy_mathew (Beadle)
on Mar 24, 2012 at 17:24 UTC ( #961424=note: print w/ replies, xml ) Need Help??

in reply to Re: Template Toolkit Root Permission
in thread Template Toolkit Root Permission

I could see this script actually is exectuing because it could print hello while exectuing the script but the template part not able to show its output you could see the script executing on

I have given complete permission to all the directory

For E.g if i comment the line #PRE_PROCESS => 'config', #PRE_PROCESS => 'variable', It give me complete output as
hello <html> <head> </head> <body> <h1>romy</h1> </body> </html>
else it give me output as only "hello"

Comment on Re^2: Template Toolkit Root Permission
Download Code
Replies are listed 'Best First'.
Re^3: Template Toolkit Root Permission
by bms (Monk) on Mar 24, 2012 at 17:59 UTC

    If you check the Template Toolkit manual, you'll notice:

    Multiple templates may be specified as a reference to a list. Each is processed in the order defined.

    my $template = Template->new({ PRE_PROCESS => [ 'config', 'header' ], POST_PROCESS => 'footer', };


    Alternately, multiple template may be specified as a single string, delimited by ':'. This delimiter string can be changed via the DELIMITER option.

    my $template = Template->new({ PRE_PROCESS => 'config:header', POST_PROCESS => 'footer', };

    So, judging by your issue and the way that you have set multiple PRE_PROCESS templates, I think this will fix your problem.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-10-10 13:37 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (257 votes), past polls