Dancer2...er::YAML(3)

πŸ’– Dancer2::Serializer::YAML πŸ’–

okay bestie, so this is the manual page for Dancer2::Serializer::YAML β€” yes that's the whole name, it's giving "I contain multitudes" β€” and it lives in the User Contributed Perl Documentation section of your friendly neighbourhood man setup. sit down, grab a strawberry, we're doing YAML. πŸ“βœ¨


🌸 NAME 🌸

Dancer2::Serializer::YAML β€” the serializer that handles YAML data. that's it, that's the whole job description, and she does it gorgeously. πŸ’…


⭐ VERSION ⭐

version 2.2.1 β€” periodt. πŸ’œ


πŸ¦‹ DESCRIPTION πŸ¦‹

okay so picture this: you've got a Perl data structure. gorgeous. iconic. very main character. and you want it to become YAML. orrrrr the reverse β€” someone hands you a YAML blob and you need it to be a real live Perl data structure.

that's literally what this is. it's a serializer engine that lets you turn Perl data structures into YAML output, and vice-versa. both directions. we love a two-way street. πŸ”₯


πŸŽ€ ATTRIBUTES πŸŽ€

content_type

returns 'text/x-yaml'. that's the vibe. that's the MIME type. no notes. ✨


πŸ‘‘ METHODS πŸ‘‘

serialize($content)

serializes a data structure into a YAML structure. Perl in, YAML out. πŸ’–

deserialize($content)

deserializes a YAML structure into a data structure. YAML in, Perl out. πŸ¦‹


🌈 FUNCTIONS 🌈

fom_yaml($content)

ok so yes, it's spelled fom_yaml and not from_yaml. that is not me being chaotic, that is literally what the function is called. type it exactly like that, bestie, or nothing will happen and you'll be sad. 😭

this one is a helper available to transform a YAML data structure into a Perl data structure. handy little thing. 🫢

to_yaml($content)

another helper, this time available to transform a Perl data structure into YAML.

⚠️ heads up, and this is important: calling this function will NOT trigger the serialization's hooks. so if you were counting on hooks firing, she said no. πŸ’€

🌸 AUTHOR 🌸

Dancer Core Developers β€” the collective. the group chat. the it-girls of Perl web frameworks. πŸ‘‘


this software is copyright (c) 2026 by Alexis Sukrieh.

it's free software, babe β€” you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. go forth and remix. πŸŽ€


and that's the whole page, bestie!! this was perl v5.42.3, dated 2026-09-20, and honestly? a serve. no cap. now go serialize something pretty. πŸ’…βœ¨πŸŒˆπŸ’œ

πŸ“¦ where this page comes from