Russell Jenkins
Russell Jenkins
@jkeenan Read through #530 before tackling that.
If a serializer is declared, Dancer2 is going to use it. The usual advice is to use the `send_as` keyword if there is only a handful or routes needing special...
@SysPete @racke @cromedome thoughts ?
`to_json` is one of three helpers that are provided. All three should be consistent in what they return (with respect to characters or octets); which got tricky at one point...
The Dancer2 v0.200000 release includes `send_as` in core. The initial example provided by @ambs can be written (and do the right thing with respect to encoding): ``` use Dancer2; get...
@ambs Did you get a chance to do some testing ?
We already have both `to_json` and `encode_json` as DSL keywords (the later added in commit 7c448c9e). Their implementation is the same; wrapping `JSON::MaybeXS::encode_json`, for which the three modules it may...
My 2 cents: Dancer::Template::Simple isn't a fork of Template::Simple. It was written from scratch and unfortunately has the same name as another template module on CPAN. Dancer2::Template::Simple is there to...
This looks potentially useful, say with a `send_error_as` keyword. Note that `send_as` started out as a plugin; which helped us iron out the syntax. You may want to consider the...
@gideondsouza It was merged: https://github.com/PerlDancer/Dancer/commit/b5481debb5ef0173207e46ab94a115938a28cb84 (I haven't looked into the second item yet)