Open nichtich opened 12 years ago
pass_through is implemented - Plack::Middleware::Xslate is just a subclass of Plack::Middleware::Static, so everything that ::Static supports should also be supported by ::Xslate. As for the other comments, I'm open to patches.
Cool, I also thought about such a module. Just some subjective feedback:
xslate_args
, andxslate_vars
instead ofargs
andvars
?Plack::Middleware::TemplateToolkit
uses the namevars
. It also supports a callback in addition to a hashref and adds the query parameters automatically (or depending onrequest_vars
).pass_through
seems not to be implemented yetdefault_type
andcontent_type
could also be compied fromPlack::Middleware::TemplateToolkit
among other features to be as compatible as possible.Cheers!