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 πŸ’–


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