Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Integrates LESS CSS (http://lesscss.org/) into Ronin

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 README.md
Octocat-spinner-32 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.