[Dancer-users] template() behaviour change in 1.3090 (immediately returning)

David Precious davidp at preshweb.co.uk
Fri Dec 16 11:35:36 CET 2011


Hi all,

Starting a new thread for visibility rather than responding in the "bug
with multiple "template" calls ?" thread.

In 1.3090, template() (and some other keywords, e.g. pass(), halt()
etc) now immediately halt execution of the route handler.

This made perfect sense for the other keywords affected, but for
template(), it seems plenty of people are using template() in
undocumented (but not incorrect) ways to generate emails etc, rather
than intending the return value of template to be returned by their
route handler immediately.

Since this is causing problems for people, we're going to reverse this
change, better document the behaviour and usage of the template keyword,
and get a new release out ASAP.

Sorry to those inconvenienced by this change - your complaints have
been heard and listened to :)

Cheers

Dave P


-- 
David Precious ("bigpresh") <davidp at preshweb.co.uk>
http://www.preshweb.co.uk/     www.preshweb.co.uk/twitter
www.preshweb.co.uk/linkedin    www.preshweb.co.uk/facebook
www.preshweb.co.uk/cpan        www.preshweb.co.uk/github


More information about the Dancer-users mailing list