8000 GitHub - phliippknuechel/less.java: Server Side Java Execution of LESS the CSS Preprocessor.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

phliippknuechel/less.java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

less.java

Java integration for the - The dynamic stylesheet language.

http://lesscss.org

  • Minimal dependencies - Only 1 Rhino.jar

  • Work with less files as if they were normal css files.

	<link type="text/css" rel="stylesheet" href="/css/main.less" >
  • CSS is generated on the fly.

  • Results of parsing are cached, optimal production speed.

  • Cache gets invalidated if any part of the less file (includes) changes. Like using direct 67CE CSS files.

usage

Add the following dependency to your maven project:

<dependency>
	<groupId>org.lesscss.java</groupId>
	<artifactId>less.java</artifactId>
	<version>1.1.4</version>
</dependency>

Add the following servlet to your web.xml:

<servlet>
    <servlet-name>lesscss</servlet-name>
    <servlet-class>org.lesscss.servlet.LessCssServlet</servlet-class>
	<load-on-startup>3</load-on-startup><!-- does not matter -->
</servlet>

<servlet-mapping>
    <servlet-name>lesscss</servlet-name>
    <url-pattern>*.less</url-pattern>
</servlet-mapping>

Optional configuration: Limit the number of cached css resources:

<servlet>...
	<init-param>
        <param-name>cache-size</param-name>
        <param-value>1000</param-value>
    </init-param>
</servlet>

license

See LICENSE file.

Copyright (c) 2009-2011 Philipp Knüchel

About

Server Side Java Execution of LESS the CSS Preprocessor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0