Dancer...::YAML(3pm)
π NAME π
okay so bestie, welcome to Dancer...::YAML(3pm) β this is the manual page for Dancer::Serializer::YAML, aka the serializer that handles all your YAML data. that's the whole job. that's the vibe. π
β¨ VERSION β¨
version 1.3522 β locked in, no cap π
π¦ SYNOPSIS π¦
ngl the original page has literally nothing here. empty. vacant. a blank canvas, a moment of silence, the void aesthetic. just know that the real tea is all down in DESCRIPTION, so keep scrolling babe π
πΈ DESCRIPTION πΈ
so basically? this class is the lil go-between β the interface β sitting between Dancer's serializer engine abstraction layer and the YAML module (or YAML::XS, we'll get there).
to actually use this engine, you flip the template setting like so:
serializer: YAML
you can do that in your config.yml file, or straight up in your app code using the set keyword. and plot twist β this serializer also gets used when the serializer is set to mutable and the correct Accept headers show up. so it's lowkey the main character in that situation too. π«Ά
by default, the module YAML is the one doing the serialize/deserialize thing for your data and for your application configuration files. but you can switch that up via the configuration:
engines:
YAML:
module: YAML::XS
β οΈ okay important tea: if you want all configuration files to be read using YAML::XS, that configuration has to be set via application code:
config->{engines}{YAML}{module} = 'YAML::XS';
don't skip that step, bestie, or the config files will not get the memo π
π§ METHODS π§
π serialize
Serialize a data structure to a YAML structure. β¨
π deserialize
Deserialize a YAML structure to a data structure. going the other way, iconic of it π
π content_type
Return 'text/x-yaml' β that's it, that's the whole method, and honestly? slay. π
π AUTHOR π
Dancer Core Developers β the collective, the legends, the ones who did that π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2010 by Alexis Sukrieh.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. π
and that's the whole page bestie, no crumbs left!! this was perl v5.40.1, dated 2026-05-05, and the manual is Dancer...::YAML(3pm) β now go forth and serialize your little heart out π
β¨π¦
π¦ where this page comes from
- ubuntu stonking: libdancer-perl 1.3522-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms