[Catalyst] newbie YAML question

Daniel Westermann-Clark daniel at acceleration.net
Wed Jul 12 16:34:01 CEST 2006


On 2006-07-12 07:01:38 -0700, John Napiorkowski wrote:
> 'View::tt_page':
>   TEMPLATE_EXTENSION: '.tt'
>   COMPILE_DIR: '/tmp/template_cache'
>   INCLUDE_PATH:
>     - talentspace_portal2->path_to( 'tt_templates' )

ConfigLoader provides a __path_to()__ replacement for this situation.
For example:

INCLUDE_PATH: __path_to('tt_templates')__

For more information, see the finalize_config method in ConfigLoader:

http://search.cpan.org/dist/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader.pm#finalize_config

-- 
Daniel Westermann-Clark



More information about the Catalyst mailing list