MATSUNO★Tokuhiro > HTML-DoCoMoCSS-0.02 > HTML::DoCoMoCSS

Download:
HTML-DoCoMoCSS-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

HTML::DoCoMoCSS - css inliner

SYNOPSIS ^

  # 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>

DESCRIPTION ^

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.

AUTHOR ^

Tokuhiro Matsuno <tokuhirom+cpan@gmail.com>

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO ^

CSS::Tiny, CSS::Tiny::Style, XML::LibXML, http://www.nttdocomo.co.jp/service/imode/make/content/xhtml/outline/s1.html#1_1_1(Japanese)

syntax highlighting: