Zane C. Bowers-Hadley > Toader > Toader::Render::CSS

Download:
Toader-1.1.2.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  1
View/Report Bugs
Module Version: 0.1.0   Source  

NAME ^

Toader::Render::CSS - This renders the CSS file for Toader.

VERSION ^

Version 0.1.0

SYNOPSIS ^

    use Toader::Render::CSS;

    my $foo = Toader::Render::CSS->new($toader);

    #renders it to a string
    my $css=$foo->renderCSS;
    if ( $foo->error ){
        warn('error: '.$foo->error.":".$foo->errorString);
    }
    
    #this renders it to a file... this unlike renderCSS
    #requires a output directory set
    $toader->setOutputDir('/foo/bar');
    if ( $toader->error ){
        #do something
    }
    $foo->render;
    if ( $foo->error ){
        warn('error: '.$foo->error.":".$foo->errorString);
    }

METHODS ^

new

This initiates the object.

One argument is taken. That is the a Toader object.

    my $foo=Toader::Render::CSS->new($toader);
    if($foo->error){
        warn('error: '.$foo->error.":".$foo->errorString);
    }

renderCSS

This processes the CSS template.

No arguments are accepted.

        my $css=$foo->renderCSS;

render

This renders it to the output directory.

No arguments are taken.

    $foo->render;

ERROR CODES ^

1, noObj

Nothing defined for the Toader object.

2, noToaderObj

The specified object is not a Toader object.

3, toaderObjPerror

The Toader object has a permanent error set.

4, noOutputDirSet

The Toader object does not have a output directory set.

5, templateFillFailed

Failed to fill in the CSS template.

6, outputDirDoesNotExist

The output directory did not exist and could not be created.

7, outputWriteFailed

Failed to write the file out to the output directory.

AUTHOR ^

Zane C. Bowers-Hadley, <vvelox at vvelox.net>

BUGS ^

Please report any bugs or feature requests to bug-toader at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT ^

You can find documentation for this module with the perldoc command.

    perldoc Toader::Render:CSS

You can also look for information at:

ACKNOWLEDGEMENTS ^

LICENSE AND COPYRIGHT ^

Copyright 2011. Zane C. Bowers-Hadley.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.

syntax highlighting: