On Thu, Aug 7, 2008 at 2:23 PM, Chris Petersen <[EMAIL PROTECTED]> wrote:
> I'm having trouble finding documentation describing how to import
> functions into the TT namespace without using "use" from within the
> template itself.

You can pass plugins and modules when you create your Template instance.

> We're currently embedding the functions into an object and passing
> that in as a variable, but this is getting in the way of some backend/
> frontend infrastructure that I'd like to clean up.

That is actually my preferred way to do it, since it gives you
top-level functions.  I usually just pass sub refs in the stash.

- Perrin

_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to