The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 $css = CSS::LESSp->parse($file);

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.