LESS Servlet

A Servlet wrapper for LESS (http://lesscss.org). LESS extends CSS with: variables, mixins, operations and nested rules.

License

License

GroupId

GroupId

com.asual.lesscss
ArtifactId

ArtifactId

lesscss-servlet
Last Version

Last Version

1.5.0
Release Date

Release Date

Type

Type

jar
Description

Description

LESS Servlet
A Servlet wrapper for LESS (http://lesscss.org). LESS extends CSS with: variables, mixins, operations and nested rules.
Project URL

Project URL

http://www.asual.com/lesscss
Project Organization

Project Organization

Asual DZZD
Source Code Management

Source Code Management

http://github.com/asual/lesscss-servlet

Download lesscss-servlet

How to add to project

<!-- https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-servlet/ -->
<dependency>
    <groupId>com.asual.lesscss</groupId>
    <artifactId>lesscss-servlet</artifactId>
    <version>1.5.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-servlet/
implementation 'com.asual.lesscss:lesscss-servlet:1.5.0'
// https://jarcasting.com/artifacts/com.asual.lesscss/lesscss-servlet/
implementation ("com.asual.lesscss:lesscss-servlet:1.5.0")
'com.asual.lesscss:lesscss-servlet:jar:1.5.0'
<dependency org="com.asual.lesscss" name="lesscss-servlet" rev="1.5.0">
  <artifact name="lesscss-servlet" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.asual.lesscss', module='lesscss-servlet', version='1.5.0')
)
libraryDependencies += "com.asual.lesscss" % "lesscss-servlet" % "1.5.0"
[com.asual.lesscss/lesscss-servlet "1.5.0"]

Dependencies

compile (6)

Group / Artifact Type Version
com.asual.lesscss : lesscss-engine jar 1.5.0
javax.servlet : javax.servlet-api jar 3.0.1
commons-logging : commons-logging jar 1.1.1
commons-codec : commons-codec jar 1.4
commons-lang : commons-lang jar 2.4
com.google.javascript : closure-compiler jar rr2079.1

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.6.4
junit : junit jar 4.10
org.eclipse.jetty : test-jetty-servlet jar 8.1.5.v20120716

Project Modules

There are no modules declared in this project.

LESS Servlet

LESS Servlet enables optimized runtime processing of LESS resources. It can be used with any static file or classpath resource while performing minification to both CSS and JavaScript sources.

Usage

The following sample demonstrates how the two provided servlets can be configured in the web.xml descriptor file.

<servlet>
    <servlet-name>less</servlet-name>
    <servlet-class>com.asual.lesscss.LessServlet</servlet-class>
    <init-param>
        <param-name>compress</param-name>
        <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
</servlet>

<servlet>
    <servlet-name>resource</servlet-name>
    <servlet-class>com.asual.lesscss.ResourceServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
</servlet>

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

<servlet-mapping>
    <servlet-name>resource</servlet-name>
    <url-pattern>/resources/js/*</url-pattern>
</servlet-mapping>

Versions

Version
1.5.0
1.4.2
1.3.3
1.3.0
1.2.11