SomMeri / less4j

Less language is an extension of css and less4j compiles it into regular css. Less adds several dynamic features into css: variables, expressions, nested rules, and so on. Less was designed to be compatible with css and any correct css file is also correct less file.
145 stars 47 forks source link

Add FileLESSSource that make Easy to read files from multiple directories #289

Closed gdelhumeau closed 9 years ago

gdelhumeau commented 9 years ago

Pull request for: https://github.com/SomMeri/less4j/issues/287

gdelhumeau commented 9 years ago

This commit actually assumes that we use Java 7. But it could easily be changed to support prior versions of java by using String or File instead of java.nio.file.Path.

SomMeri commented 9 years ago

@gdelhumeau Thank you, this helps. Less4j is compiled in 1.6 so I will change it to File.

I am also thinking about splitting it into two classes: MultiPathFileSource and MultiPathStringSource (or something of the sort) - so that I can add charset for file read and name for string without single class having too many constructors. Would that be a problem for something?

gdelhumeau commented 9 years ago

No, it has the benefit of being more clear, indeed.