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

    Right you are Corion!

    Would you believe I just went back to the root manual page and noticed that. Sometimes the raw CPAN documentation can be a bit intimidating so I tend to look for tutorials first.

    Incorporating that information and... all is well. I'm suddenly a 'Template' library fan!!!

    "Aure Entuluva!" - Hurin Thalion at the Nirnaeth Arnoediad.