[dancer-users] Serializer for Dancer2

Sawyer X xsawyerx at gmail.com
Mon Dec 22 16:33:27 GMT 2014


Exactly. :)

On Mon, Dec 22, 2014 at 2:17 AM, Matthew Mallard <matt at q-technologies.com.au
> 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 <
> russell.jenkins at strategicdata.com.au> 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
> > dancer-users at dancer.pm
> > http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
> _______________________________________________
> dancer-users mailing list
> dancer-users at dancer.pm
> http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20141222/1ede181a/attachment.html>


More information about the dancer-users mailing list