CSS::LESSp3pm
Less for perl. parse .less files and returns valid css (lesscss.org for more info about less files)
Usage
use CSS::LESSp;my $buffer;open(IN, "file.less");for ( <IN> ) { $buffer .= $_ };close(IN);my @css = CSS::LESSp->parse($buffer);print join("", @css);
or you could simply use the lessp.pl tool in the package
$ lessp.pl css.less > css.css
Overview
This module is designed to parse and compile .less files in to .css files.
About the documentation and syntax of less files please visit lesscss.org
Difference with the original less for ruby
What is the benefits of LESS for perl ...
It's extremely fast :
# time ./lessp.pl big.less > big.cssreal 0m2.198suser 0m2.174ssys 0m0.020s# time lessc big.less big.cssreal 0m18.805suser 0m18.437ssys 0m0.184s
Methods
parse
Main parse method, returns array of the css file
copyFunction
copyTo
dump =head3 getSelector =head3 getValue =head3 getVariable =head3 insertChild =head3 insertFunction =head3 insertRule =head3 insertVariable =head3 isFunction =head3 new =head3 process
Contributors
People who've helped with this project :
Michael Schout <[email protected]>
Copyright and license
Copyright (c) 2010.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Releases
5 releases since Debian 9 (Stretch); the text changed 2 times.