Subject: | Should be able to specify settings for MicroTemplate constructor in config.yml |
It should be possible to change the settings passed to the Text::MicroTemplate constructor by
setting the relevant options in the dancer config file. In the current version one is only able to
change the values of "tag_start" and "tag_end", all other settings are left at the defaults.
Specifically it is not possible to turn off the default "escape_func" option - This makes it
impossible cult to use templates that contain HTML in a layout, as they are automatically HTML
escaped with no way to turn this off.
I suggest allowing setting of all options in the config file, setting defaults if the values are
undefined - Like I do in my own Dancer::Template::MojoTemplate -
<http://search.cpan.org/~jaitken/Dancer-Template-MojoTemplate-
0.2.0/lib/Dancer/Template/MojoTemplate.pm>