| CSS::Adaptor(3pm) | User Contributed Perl Documentation | CSS::Adaptor(3pm) |
CSS::Adaptor - Arbitrarily map CSS data for use in another context.
use CSS;
# create a CSS object with an adaptor
my $css = new CSS({
'adaptor' => 'CSS::Adaptor',
});
# load some CSS data
$css->read_file( "my_file.css" );
# change the adaptor
$css->set_adaptor( "CSS::Adaptor::Pretty" );
# output CSS object using the current adaptor
print $css->output();
This class is used by CSS to translate a CSS object to a string. This allows CSS data to be easily mapped into other formats.
This documentation is for people who want to write their own CSS::Adaptor module. For usage information, see the documentation for CSS.
Copyright (C) 2001-2002, Allen Day <allenday@ucla.edu>
Copyright (C) 2003-2004, Cal Henderson <cal@iamcal.com>
CSS
| 2020-12-29 | perl v5.32.0 |