HTML::DoCoMoCSS - css inliner
# src use HTML::DoCoMoCSS; my $inliner = HTML::DoCoMoCSS->new(base_dir => '/path/to/documentroot/'); $inliner->apply(<<'...'); <html> <head> <link rel="stylesheet" href="/css/foo.css" /> </head> <body> <div class="title">bar</div> </body> </html> ... # foo.css .title { color: red; } # result <html> <head> <link rel="stylesheet" href="/css/foo.css" /> </head> <body> <div class="title" style="color: red;">bar</div> </body> </html>
HTML::DoCoMoCSS is css in-liner.
DoCoMo(Japanese cell-phone carrier)'s UA cannot use <link rel="stylesheet" /> style css, only can use in-line CSS.
That calls iCSS.
Tokuhiro Matsuno <tokuhirom+cpan@gmail.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
CSS::Tiny, CSS::Tiny::Style, XML::LibXML, http://www.nttdocomo.co.jp/service/imode/make/content/xhtml/outline/s1.html#1_1_1(Japanese)
To install HTML::DoCoMoCSS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm HTML::DoCoMoCSS
CPAN shell
perl -MCPAN -e shell install HTML::DoCoMoCSS
For more information on module installation, please visit the detailed CPAN module installation guide.