More stylesheets with LESS

There is an excellent article on IBM developerWorks website “Do more in CSS with LESS“.  It describes how to use LESS to write readable and maintainable Cascading Style Sheets.  Unfortunatelly command line command using Rhino to compile LESS to CSS changed from the version  in the article. Here is batch file with one parameter filename without extension, which can be used for version 1.7.5. For example from myfile.less would create myfile.css:

set lessD=C:\Users\Owner\lessRhino
java -jar %lessD%\js.jar -f %lessD%\less-rhino-1.7.5.js %lessD%\lessc-rhino-1.7.5.js %1.less > %1.css

This entry was posted in workday. Bookmark the permalink.

Leave a Reply