Skip to content

nutzam/lessc4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lessc4j

Running less.js by nashorn, convert less to css.

使用JDK8+自带的nashorn引擎,实现 less --> css 的转换过程

License

Thanks to artfiedler

This project is inspired by less/less.js#2985 , thanks to @artfiedler

less.js version: 2.7.2 without any modify.

Usage 基本用法

LesscService lessc = new LesscService();
lessc.init();
String lessStr = ".class { width: (1 + 3) }";
String cssStr = lessc.render(lessStr);
System.out.println(cssStr);
// output:  .class { width: 4 }

How to build

mvn package install

About

Running less.js by nashorn, by nutz team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages