Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ColdFusion
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
javaloader
javascripts
lib
.gitignore
LessCss.cfc
README.md
index.cfm

README.md

Less CSS v0.1

The Less CSS plugin gives you the ability to easily incorporate Less CSS into your wheels application. In design and development environments, the plugin includes the less css javascript to compile the less css client side for easy development. When in testing and production environments, the plugin uses the asual less css java engine to compile your less css on application reload to keep your site or application snappy and light on http requests.

Dependencies

This plugin uses the asual less css java engine and the Less CSS javascript framework.

Usage

Application Configuration

Call the included generateLessCssFiles() method from the events/onapplicationstart.cfm to configure what less files to compile when moving to the testing or production environments.

Call lessLinkTag() in your application's layouts to render everything necessary for less CSS to work in all wheels environment settings.

Methods

generateLessCssFiles Application start method to compile your less css files when moving to testing or production environments.
lessLinkTag Handy helper method to link up less CSS files in your views.

Method Specifications

generateLessCssFiles
Argument Type Required Default Description
source/sources string Yes A list of less CSS files to compile when necessary.
compress boolean No false Whether to compress the combined less CSS files with the asset bundler. Requires you have the asset bundler plugin installed.
extension string No .less The extension of your less CSS files.
rootPath string No stylesheets The path where your less files reside.
lessLinkTag
Argument Type Required Default Description
source/sources string Yes The sources to make `<link />` tags for.
type string No text/css The type attribute of the link tag.
media string No screen, projection What media the stylesheet should be displayed for.
delim string No , Delimitered used in the sources argument.
bundle string No When asset bundler is installed, you can specify a bundle to output. Requires you have the asset bundler plugin installed.

Uninstallation

To uninstall this plugin, simply delete the /plugins/lesscss-0.1.zip file.

Credits

This plugin was created by James Gibson with support from Arthrex.

Something went wrong with that request. Please try again.