Exactly. :)

On Mon, Dec 22, 2014 at 2:17 AM, Matthew Mallard <[email protected]
> wrote:

> Hi Russell,
>
> Ok, so basically, I need to separate my code between what presents web
> pages from those bits providing the API (ajax) and set the serializer in
> the API only.
>
> Thanks,
> Matt
>
> On 22 Dec 2014, at 10:05 am, Russell Jenkins <
> [email protected]> wrote:
>
> > Matthew, Andrew and Clive.
> >
> > Prior to Dancer2 0.154000, serialization was only attempted if a
> reference was returned.
> >
> > From D2 0.154 onwards; if you have defined a serializer for your app,
> then D2 will *always*
> > attempt to serialize output, including scalars.
> >
> > Sawyer gave an excellent writeup of this on day 11 of the this years
> advent:
> >  http://advent.perldancer.org/2014/11
> >
> > Hope that helps,
> >  Russell.
> >
> > ps. saywer+24 for this years advent entries !!!!!
> > _______________________________________________
> > dancer-users mailing list
> > [email protected]
> > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
> _______________________________________________
> dancer-users mailing list
> [email protected]
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
_______________________________________________
dancer-users mailing list
[email protected]
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

Reply via email to