<p dir="ltr">Indeed :)<br>
After reading your message I'm glad I didn't have to investigate myself: I would have struggled</p>
<div class="gmail_quote">On 7 Dec 2013 10:50, "sawyer x" <<a href="mailto:xsawyerx@gmail.com">xsawyerx@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">You are fantastic.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Dec 6, 2013 at 6:30 PM, Yanick Champoux <span dir="ltr"><<a href="mailto:yanick@babyl.dyndns.org" target="_blank">yanick@babyl.dyndns.org</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On 13-12-06 11:22 AM, Yanick Champoux wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I can reproduce the issue with Pierre's code. Weird. I'll have a deeper<br>
look.<br>
</blockquote>
<br></div>
Urgh.<br>
<br>
So it seems that the response object is created before the serializer is set. And, even worse, it's not the response's own serializer that is set, but the global serializer for the application. Which means that we have this delightful delayed slapstick act:<br>



<br>
$ curl localhost:3000/page.json<br>
HASH(0x32fafd8)<br>
$ curl localhost:3000/page.yaml<br>
{"status":"404","title":"Error 404 - Not Found","message":"unsupported format requested: yaml"}<br>
$ curl localhost:3000/page.yml<br>
{"some key":"value","something":"<u></u>else"}<br>
$ curl localhost:3000/page.json<br>
---<br>
some key: value<br>
something: else<br>
<br>
<br>
Github issue will be created. Problem shall be solved. But only after my coffee's drained. :-)<div><div><br>
<br>
Joy,<br>
`/anick<br>
______________________________<u></u>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/<u></u>mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>
<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></blockquote></div>