[dancer-users] Serializer for Dancer2

Matthew Mallard matt at Q-technologies.com.au
Mon Dec 22 01:17:23 GMT 2014


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



More information about the dancer-users mailing list