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

damien krotkine dkrotkine at gmail.com
Fri Dec 16 13:13:10 CET 2011


The fix is now in the development branch, waiting for review and
release. We'll keep you informed when it's done.

thanks
dams

On 16 December 2011 11:35, David Precious <davidp at preshweb.co.uk> wrote:
>
> 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
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users


More information about the Dancer-users mailing list