Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Integrates LESS CSS (http://lesscss.org/) into Ronin
JavaScript Gosu
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/ronin_less Caching + README
test/ronin_less Caching + README
README.md
pom.xml

README.md

Ronin-Less

Ronin-Less is a simple plugin for Ronin that will dynamically compile your LessCSS files into CSS, when requested via HTTP

Installation

Installing Ronin-Less is trivial. In your RoninConfig setup, just add this:

Filters.add( new LessFilter(){ :Cache = m != DEVELOPMENT } )

This will set the filter up to cache the generated CSS unless the server is in development mode, in which case it will recompile dynamically on every request.

Usage

Once you've installed the filter, you can put LessCSS files in your `html/public' folder, and, when you request them, they will be automatically compiled to CSS.

So http://localhost:8080/public/scripts/example.less with this content:

@color: #4D926F;

h2 {
  color: @color;
}

will return this CSS:

h2 {
  color: #4D926F;
}

If you wish to view the raw version of the LessCSS, you can append '?raw' to the URL.

Something went wrong with that request. Please try again.