Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Ruby Less.js Compiler

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 ruby-less-js.gemspec
README.md

Ruby LessJs

Ruby LessJs is a bridge to the official Javascript-based Less.js compiler.

LessJs.compile File.read("css.less")

Installation

gem install less-js

Dependencies

This library depends on the less-js-source gem which will be updated any time a new version of Less.js is released. (The less-js-source gem's version number is synced with each official Less.js release.) This way you can build against different versions of Less.js by requiring the correct version of the less-js-source gem.

Note: version 1.1.1 of Less.js is tagged as 1.1.1.1 on the less-js-source gem.

ExecJS

The ExecJS library is used to automatically choose the best JavaScript engine for your platform. Check out its README for a complete list of supported engines.

Lifted From

The template for this gem was lifted from Joshua Peek's ruby-coffee-script gem.

Something went wrong with that request. Please try again.