agoragames/stache — pull request #21 by kategengler (2012-11-29 16:54:56+00:00)
Title: Add configuration option to allow a wrapper module for view classes

I've added a configuration option called `wrapper_module_name`, that lets you set the name of a module in which to look for your view classes.

For example, if I set the configuration option for `wrapper_module_name` to "Wrapper", Stache will now look for `Wrapper::Path::To::Template::TemplateName` instead of just `Path::To::Template::TemplateName`. If the configuration option isn't set, the previous behavior is maintained.

I did this because I ran into a name conflict with mailers. The default mailer view directories aren't pluralized, and so the module expected by Stache was in conflict with the actual mailer.

I tried to follow the local style of the code and believe everything I've added is well tested.