Ivan Drinchev > CSS-LESSp-0.03 > CSS::LESSp

Download:
CSS-LESSp-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  2
View/Report Bugs
Module Version: 0.03   Source   Latest Release: CSS-LESSp-0.86

NAME ^

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

SYNOPSIS ^

  use CSS::LESSp;

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

  print join("", @css);

DESCRIPTION ^

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

METHODS ^

parse

Main parse method, returns array of css file

BUGS ^

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.

AUTHOR ^

Ivan Drinchev <drinchev@gmail.com>

COPYRIGHT AND LICENSE ^

Copyright (c) 2009.

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

syntax highlighting: