Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

What template syntax can I use to output TT2 configuration in my template? I would like to get my template to show me INCLUDE_PATH. Thanks for any help.

Replies are listed 'Best First'.
Re: Template toolkit INCLUDE_PATH question
by tomhukins (Curate) on Aug 19, 2005 at 10:52 UTC

    Interesting question! I can't answer it, but this reply might help point you in the right direction.

    Template::Provider's paths method will return what you want, but I don't know how to retrieve the appropriate provider object(s) from a Template object.

    $template->service returns the Template::Service object; $template->service->context returns the Temmplate::Context object. I can't figure out how to get the providers, though.

    You might get a more helpful response from asking the TT mailing list.