Re: compile a template without rendering it?

Jason Galea <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <CABGOMYbiA_fnuLtjPvNmbuf2+O+csWVfBueCnu4MQ8piaJm3_g@mail.gmail.com>
hmm.. it appears you could get a compiled template with

$compiled = $tt->context->template('template.tt);

but I'd have to ask why you would want/need to do this?

cheers,

J

On Thu, Jan 12, 2012 at 7:18 AM, E R <[email protected]> wrote:

> Is there  way to compile a template without rendering it?
>
> Ideally I'd like to be able to a) force recompilation and b) recompile
> only if necessary.
>
> Thanks,
> ER
>
> _______________________________________________
> templates mailing list
> [email protected]
> http://mail.template-toolkit.org/mailman/listinfo/templates
>

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.