Class LessCompilerImpl

java.lang.Object
ch.tocco.nice2.toolbox.impl.css.LessCompilerImpl
All Implemented Interfaces:
LessCompiler

@Component public class LessCompilerImpl extends Object implements LessCompiler
  • Constructor Details

    • LessCompilerImpl

      public LessCompilerImpl()
  • Method Details

    • compile

      public String compile(String less)
      Description copied from interface: LessCompiler
      Compile a LESS string to CSS.
      Specified by:
      compile in interface LessCompiler
      Parameters:
      less - the LESS string.
      Returns:
      the compiled CSS.
    • compile

      public String compile(String less, ModelResource importsRootDir)
      Description copied from interface: LessCompiler
      Compile a LESS string to CSS.
      Specified by:
      compile in interface LessCompiler
      Parameters:
      less - the LESS string.
      importsRootDir - the root directory to read imported files from.
      Returns:
      the compiled CSS.