<div dir="ltr">Exactly. :)</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 22, 2014 at 2:17 AM, Matthew Mallard <span dir="ltr"><<a href="mailto:matt@q-technologies.com.au" target="_blank">matt@q-technologies.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Russell,<br>
<br>
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.<br>
<br>
Thanks,<br>
Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On 22 Dec 2014, at 10:05 am, Russell Jenkins <<a href="mailto:russell.jenkins@strategicdata.com.au">russell.jenkins@strategicdata.com.au</a>> wrote:<br>
<br>
> Matthew, Andrew and Clive.<br>
><br>
> Prior to Dancer2 0.154000, serialization was only attempted if a reference was returned.<br>
><br>
> From D2 0.154 onwards; if you have defined a serializer for your app, then D2 will *always*<br>
> attempt to serialize output, including scalars.<br>
><br>
> Sawyer gave an excellent writeup of this on day 11 of the this years advent:<br>
> <a href="http://advent.perldancer.org/2014/11" target="_blank">http://advent.perldancer.org/2014/11</a><br>
><br>
> Hope that helps,<br>
> Russell.<br>
><br>
> ps. saywer+24 for this years advent entries !!!!!<br>
> _______________________________________________<br>
> dancer-users mailing list<br>
> <a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
> <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>