HI,
The Perl Maven and the Code Maven sites run using the same code-base and thus the same
I'd like to have some additional templates that differ in the two sites, but I don't want to have two separate sets of templates.
So I wanted to add multiple views directories which worked in the config file like this
engines:
template:
template_toolkit:
encoding: 'utf8'
INCLUDE_PATH:
- 'views'
- 'config/templates'
start_tag: '<%'
end_tag: '%>'
but I'd like to set this during the run-time, for example in the 'before' hook.
So far I could not do it.
I tried set views => [dir1, dir1] but does not work as views is required to be a string.
I could not figure out how else to change the INCLUDE_PATH during run-time.
Is there a solution? If currently not,would it be possible to allow views to be either a string or an array ref to strings?
regards
Gabor