[Dancer-users] template() behaviour change in 1.3090 (immediately returning)
Richard Huxton
dev at archonet.com
Fri Dec 16 11:40:55 CET 2011
On 16/12/11 10:35, David Precious wrote:
> 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.
To be fair, it was documented to *not return*.
> 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.
Good - because I'm not sure what square we'd all have to "occupy" if the
decision had stood. Besides - it's too cold and wet here to be sat
outside with a placard :-)
--
Richard Huxton
Archonet Ltd
More information about the Dancer-users
mailing list