Blio icon indicating copy to clipboard operation
Blio copied to clipboard

Add ability to dictate options for Template->new call

Open harleypig opened this issue 11 years ago • 0 comments

I would like to be able to add options to the Template->new call from the config file, though not necessarily from the command line.

I'm not familiar with Moose or MooseX::SimpleConfig but it looks like I could add a simple "has 'trim' => (is=>'ro',isa=>'Int',required=>0);" and a check in the _build_tt sub.

However, this would require adding support for all the possible options. I'd rather be able to allow for something like

tt_option_trim=1

in the configuration file and having a routine in the build_tt that would look for 'tt_option' in config values.

I would be glad to do the work on this, I just don't know how to go about doing it.

harleypig avatar Jul 23 '13 22:07 harleypig