Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer-Template-MicroTemplate CPAN distribution.

Report information
The Basics
Id: 70512
Status: resolved
Priority: 0/
Queue: Dancer-Template-MicroTemplate

People
Owner: Nobody in particular
Requestors: loonypandora [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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>
Fixed in 1.0.0