<div dir="ltr"><div><div>HI,<br><br></div>The Perl Maven and the Code Maven sites run using the same code-base and thus the same<br></div><div>set of templates in the views directory. <a href="https://github.com/szabgab/Perl-Maven">https://github.com/szabgab/Perl-Maven</a><br><br></div><div>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.<br><br>So I wanted to add multiple views directories which worked in the config file like this<br><br>engines:<br></div><div>  template:<br>    template_toolkit:<br>      encoding:  'utf8'<br>      INCLUDE_PATH:<br>        - 'views'<br>        - 'config/templates'<br>      start_tag: '<%'<br>      end_tag:   '%>'<br><br><br>but I'd like to set this during the run-time,  for example in the 'before' hook.<br><br></div><div>So far I could not do it.<br></div><div><br>I tried  set views => [dir1, dir1]    but does not work as views is required to be a string.<br><br></div><div>I could not figure out how else to change the INCLUDE_PATH during run-time.<br><br></div><div>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?<br><br></div><div>regards<br></div><div>    Gabor<br><br></div><div><br></div></div>