GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  CSS::CROCO (3)

.ds Aq ’

NAME

CSS::Croco - Quick CSS parser

CONTENTS

SYNOPSIS



    my $parser = CSS::Croco->new;
    my $stylesheet = $parser->parse( 
        @charset "windows-1251";
        * { color: red; background-color: black; fint-size: 12px !important}
        p { padding: 0 }
     );
    my @rules =  $stylesheet->rules;
    my $decls = $rules[2]->declarations;
    say $decls->to_string(0) # padding : 0;
    my $list = CSS::Croco::DeclarationList->parse( border: solid 1px; border: solid 2px; );
    say $list->property( border)->to_string # border : solid 1px;



DESCRIPTION

This module is an interface to libcroco, providing CSS parser with CSS Object Model. This is early release, some functionality was not completed. Especially - CSS SAX Parser.

METHODS

    new

Args: none

Creates new instance of CSS::Croco

    parse

Args: $string

Parses string $string and returns CSS::Croco::StyleSheet object.

    parse_file

Args: $filename

Parses file $filename and returns CSS::Croco::StyleSheet object.

SEE ALSO

CSS, CSS::DOM

AUTHOR

Andrey Kostenko, <andrey@kostenko.name>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Andrey Kostenko

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 CSS::CROCO (3) 2009-12-26

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.