asual / lesscss-engine
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
| name | age | message | |
|---|---|---|---|
| |
LICENSE | Mon Oct 05 15:07:38 -0700 2009 | |
| |
README.md | Tue Oct 20 06:00:31 -0700 2009 | |
| |
pom.xml | Wed Jan 20 01:16:12 -0800 2010 | |
| |
src/ | Thu Jan 21 12:25:18 -0800 2010 |
README.md
LESS Engine
LESS Engine provides basic access to the core LESS functionality. It's a core library that can be used for a variety of JVM based LESS applications.
Usage
The following sample demonstrates how the API can be used to parse strings and compile URL resources:
// Instantiates a new LessEngine
LessEngine engine = new LessEngine();
// Compiles a CSS string
String text = engine.compile("div { width: 1 + 1 }");
// Compiles an URL resource
String url = engine.compile(getClass().getClassLoader().getResource("META-INF/test.css"));
// Creates a new file containing the compiled content
engine.compile(new File("/Users/User/Projects/styles.less"),
new File("/Users/User/Projects/styles.css"));
// Destroys the engine
engine.destroy();

