1Dancer::Serializer::YAMULs(e3r)Contributed Perl DocumentDaatnicoenr::Serializer::YAML(3)
2
3
4
6 Dancer::Serializer::YAML - serializer for handling YAML data
7
9 version 1.3513
10
13 This class is an interface between Dancer's serializer engine
14 abstraction layer and the YAML (or YAML::XS) module.
15
16 In order to use this engine, use the template setting:
17
18 serializer: YAML
19
20 This can be done in your config.yml file or directly in your app code
21 with the set keyword. This serializer will also be used when the
22 serializer is set to mutable and the correct Accept headers are
23 supplied.
24
25 By default, the module YAML will be used to serialize/deserialize data
26 and the application configuration files. This can be changed via the
27 configuration:
28
29 engines:
30 YAML:
31 module: YAML::XS
32
33 Note that if you want all configuration files to be read using
34 "YAML::XS", that configuration has to be set via application code:
35
36 config->{engines}{YAML}{module} = 'YAML::XS';
37
39 serialize
40 Serialize a data structure to a YAML structure.
41
42 deserialize
43 Deserialize a YAML structure to a data structure
44
45 content_type
46 Return 'text/x-yaml'
47
49 Dancer Core Developers
50
52 This software is copyright (c) 2010 by Alexis Sukrieh.
53
54 This is free software; you can redistribute it and/or modify it under
55 the same terms as the Perl 5 programming language system itself.
56
57
58
59perl v5.34.0 2021-07-22 Dancer::Serializer::YAML(3)