lesscss-java icon indicating copy to clipboard operation
lesscss-java copied to clipboard

Support to compile from source as string and testcases to test the same

Open arjunballa opened this issue 12 years ago • 5 comments

Support to compile from source as string and testcases to test the same

arjunballa avatar Feb 09 '13 23:02 arjunballa

Hello, can you explain what you are trying to achieve? Also there is problem with diff, I can'r see the differences on github, I bet it is due to unix/windows differences in new lines.

cpopov avatar Feb 28 '13 01:02 cpopov

I have added support to compile less from string source. In my project we store the less source and imports in database as a blob and we need to dynamically compile less and serve. To do this I modified to LessSource.java where all imports should be provided to public LessSource(String source, Map<String, LessSource> imports) constructor and also changed resolveImports method to look for imports in map.

I will submit a new pull request so that you can compare.

arjunballa avatar Feb 28 '13 21:02 arjunballa

Can you please export the eclipse Java Formatter profile and push that to github. I am using eclipse default format and there are lot of formatting differences. My eclipse version is Helios Service Release 2

arjunballa avatar Feb 28 '13 23:02 arjunballa

I use intellij and Eclipe. You don't need the settings file. Don;t reformat the whole code, just your piece. Also I think your number of columns is 80. You can just increase that 120 or more.

cpopov avatar Mar 01 '13 10:03 cpopov

As the design is changed by introducing a new abstract class Resource this pull request is not valid anymore. This pull request can be closed.

arjunballa avatar Sep 03 '13 21:09 arjunballa