
CSS::LESSp - LESS for perl. Parse .less files and returns valid css (lesscss.org for more info about less files)

use CSS::LESSp;
my $buffer;
open(IN, "file.less");
for ( <IN> ) { $buffer .= $_ };
close(IN);
my @css = CSS::LESSp->parse($buffer);
print join("", @css);

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

Main parse method, returns array of css file

You can not use variables access from specific rules.
You can't do this
#defaults {
@width: 960px;
}
.comment {
width: #defaults[@width];
}
All other bugs should be reported via http://rt.cpan.org/Public/Dist/Display.html?Name=CSS-LESSp or bug-CSS-LESSp@rt.cpan.org.

Ivan Drinchev <drinchev@gmail.com>

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