1CSS::Adaptor(3)       User Contributed Perl Documentation      CSS::Adaptor(3)
2
3
4

NAME

6       CSS::Adaptor - Arbitrarily map CSS data for use in another context.
7

SYNOPSIS

9         use CSS;
10
11         # create a CSS object with an adaptor
12         my $css = new CSS({
13              'adaptor' => 'CSS::Adaptor',
14         });
15
16
17         # load some CSS data
18         $css->read_file( "my_file.css" );
19
20
21         # change the adaptor
22         $css->set_adaptor( "CSS::Adaptor::Pretty" );
23
24
25         # output CSS object using the current adaptor
26         print $css->output();
27

DESCRIPTION

29       This class is used by CSS to translate a CSS object to a string. This
30       allows CSS data to be easily mapped into other formats.
31
32       This documentation is for people who want to write their own
33       CSS::Adaptor module. For usage information, see the documentation for
34       CSS.
35

METHODS

37   CONSTRUCTOR
38       "new()"
39           Called without options.
40
41   FUNCTIONS
42       "output_rule( $rule )"
43           returns a string containing a formatted CSS::Style object, passed
44           as an object ref
45
46       "output_selectors( $selectors )"
47           returns a string containing a formatted list of CSS::Selector
48           objects, passed as an array ref
49
50       "output_properties( $properties )"
51           returns a string containing a formatted list of CSS::Property
52           objects, passed as an array ref
53
54       "output_values( $values )"
55           returns a string containing a formatted list of CSS::Value objects,
56           passed as an array ref
57

AUTHORS

59       Copyright (C) 2001-2002, Allen Day <allenday@ucla.edu>
60
61       Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
62

SEE ALSO

64       CSS
65
66
67
68perl v5.12.0                      2008-04-23                   CSS::Adaptor(3)
Impressum