Introducing Template::Plugin::StashValidate
I've been using MooseX::Params::Validate more and more recently for checking incoming parameters. I'm a big fan of the Moose type system, and love the implicit documentation you get from having a block at the top of your sub that lays out exactly what you're expecting to be passed in.
A coworker was recently looking for something similar for Template Toolkit - rather than simply digging around in the Stash for values that you hope are there (and are the right type), could you actually insist that they were t…