in reply to Re^2: 'Here Documents' and unrecognized escapes
in thread 'Here Documents' and unrecognized escapes
The second example in the Template Toolkit documentation shows how to pass it a string for the template:
# text reference $text = "[% INCLUDE header %]\nHello world!\n[% INCLUDE footer %]" +; $tt->process(\$text) || die $tt->error(), "\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: 'Here Documents' and unrecognized escapes
by morelenmir (Beadle) on May 04, 2014 at 19:22 UTC |