1CSS::Adaptor(3) User Contributed Perl Documentation CSS::Adaptor(3)
2
3
4
6 CSS::Adaptor - Arbitrarily map CSS data for use in another context.
7
9 use CSS;
10
11 # create a CSS object with an adaptor
12 my $css = new CSS({
13 'adaptor' => 'CSS::Adaptor',
14 });
15
16 # load some CSS data
17 $css->read_file( "my_file.css" );
18
19 # change the adaptor
20 $css->set_adaptor( "CSS::Adaptor::Pretty" );
21
22 # output CSS object using the current adaptor
23 print $css->output();
24
26 This class is used by CSS to translate a CSS object to a string. This
27 allows CSS data to be easily mapped into other formats.
28
29 This documentation is for people who want to write their own CSS::Adap‐
30 tor module. For usage information, see the documentation for CSS.
31
33 CONSTRUCTOR
34
35 "new()"
36 Called without options.
37
38 FUNCTIONS
39
40 "output_rule( $rule )"
41 returns a string containing a formatted CSS::Style object, passed
42 as an object ref
43
44 "output_selectors( $selectors )"
45 returns a string containing a formatted list of CSS::Selector
46 objects, passed as an array ref
47
48 "output_properties( $properties )"
49 returns a string containing a formatted list of CSS::Property
50 objects, passed as an array ref
51
52 "output_values( $values )"
53 returns a string containing a formatted list of CSS::Value objects,
54 passed as an array ref
55
57 Copyright (C) 2001-2002, Allen Day <allenday@ucla.edu>
58
59 Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
60
62 CSS
63
64
65
66perl v5.8.8 2008-04-22 CSS::Adaptor(3)