[Templates] Processing templates from variables
Pronichev Alexander
dyker@agava.com
Tue, 7 Aug 2007 17:31:32 +0400
On Tue, 7 Aug 2007 16:31:33 +0400
Pronichev Alexander <dyker@agava.com> wrote:
>PA > Hi everyone.
>PA > I have the following problem: I need to process "sub"templates from template file, for example I have a template variable "test" which contains tt directives, how to PROCESS this variable from template?
>PA > If it's not posiible how to add predefine BLOCK's to existsing $tt object?
I've found the answer to the second question:
$tt->context()->define_block('NAME', $template_content);
>PA >
>PA > --
>PA > WBR dyker
>PA > Agava Software
>PA > GPG Pub key: http://keyserver.veridis.com:11371/export?id=-3088395899858320934&created=1134482111000
>PA >
>PA > _______________________________________________
>PA > templates mailing list
>PA > templates@template-toolkit.org
>PA > http://lists.template-toolkit.org/mailman/listinfo/templates
--
WBR dyker
Agava Software
GPG Pub key: http://keyserver.veridis.com:11371/export?id=-3088395899858320934&created=1134482111000
ICQ: 196076228
Mobile: +7(926)144-93-86