[Templates] how do I do $tt->process( $text_ref )

[prev] [thread] [next] [Date index for 2004/07/30]

From: Greg Matheson
Subject: [Templates] how do I do $tt->process( $text_ref )
Date: 04:07 on 30 Jul 2004
I want to take Template Toolkit and use it as a filter for this other program
I am running. The other program provides to its filters a $string
reference, in this case, one to the text of the Template Toolkit template. 

But TT's process method takes a file name as argument, not a
string. Do I have to understand how to subclass
Template::Provider, Template::Document, and Template::Parser if I
want to get this to work?

I don't see any likely methods I can overload in the
documentation for these classes.

It seems to me that this approach would bypass the process
method altogether.

        -- 
        Greg Matheson, Taiwan

_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] how do I do $tt->process( $text_ref )
Greg Matheson 04:07 on 30 Jul 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52