[dancer-users] template parameters are not working

D Perrett perrettdl at googlemail.com
Tue Jan 19 20:54:26 GMT 2016


perl -wle 'use YAML; YAML::Load qq<--- { "foo": 123, "foo": 456}\n>'

Actually, YAML does complain with 'YAML_LOAD_WARN_DUPLICATE_KEY' (but
doesn't die, and there doesn't seem to be a way of making it die,
short of violating its namespace).

Anyone know where that warning goes?

Daniel

On 19 January 2016 at 19:10, John Stoffel <john at stoffel.org> wrote:
>>>>>> "Yanick" == Yanick Champoux <yanick at babyl.dyndns.org> writes:
>
> Yanick> On 2016-01-19 11:05 AM, John Stoffel wrote:
>>> This should be a bug, and Dancer should just fail when this happens.
>
> Yanick> Nah. This is happening deeper in the stack, and is simply the way YAML
> Yanick> is parsed by the YAML libraries. And it's not even a YAM-only thing, as
>
> Yanick>         $ perl -MJSON -MData::Printer -E'p to_json from_json q!{ "a": 1, "a": 2 }!'
>
> Yanick> would bite you in the same way.
>
> This just makes me think that YAML is the wrong answer.
> _______________________________________________
> 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