Sass

SASS main implementation. Contains:

  1. Different compiling methods:
    1. compile. Simple string-to-string method
    2. compileFile. File compiling method
    3. compileFolder. Folder compiling method
    4. watchDir. Recompiling on change method
  2. Option specifier. It allows configuring SASS as needed
  3. SASS to SCSS converter. It allows implicit conversion from SASS code to CSS through the interjacent conversion to SCSS

Constructors

this
this()
Undocumented in source.

Members

Functions

compile
string compile(string source)

Compiles SASS string to CSS string.

compile
string compile(string source, string sourcemap)

Compiles SASS string to CSS string and generates source map.

compileFile
string compileFile(string input, string output)

Compiles SASS file.

compileFile
string compileFile(string input, string output, string sourcemap)

Compiles SASS file.

compileFileImpl
string compileFileImpl(string input, string output, string sourcemap)
Undocumented in source. Be warned that the author may not have intended to support it.
compileFolder
void compileFolder(string input, string output)

Compiles folder with SASS files. There are two compiling variants: 1) If singleFile option is enabled, method compiles all folder SASS files to the output to a single file with name defined in singleFile.name. By now it is impossible to create source map to that file. 2) Otherwise, method compiles SASS files name-by-name to the folder output. Source maps will be created too.

compileImpl
string compileImpl(string source, string sourcemap)
Undocumented in source. Be warned that the author may not have intended to support it.
convertSass2Scss
string convertSass2Scss(string source)

Converts SASS code to SCSS code

createMapFile
void createMapFile(string output, string source)

Creates source map file in output path from source string

createResultFile
void createResultFile(string output, string source)

Creates result CSS file in output path from source string

testDirs
void testDirs(string input, string output)
Undocumented in source. Be warned that the author may not have intended to support it.
unwatchDir
void unwatchDir(Tid tid)

Stops directory watching.

watchDir
Tid watchDir(string input, string output)

Activates directory watching and recompiles any file every time it changes. Watching works on two scenarios. If singleFile option is enabled, recompiling affects all files in folder. Otherwise, only changed file will be recompiled. Any watching process creates own thread and returns it Tid. To stop the process unwatchDir method should be used.

watchDirImpl
void watchDirImpl(string input, string output)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

options
SassOptions options;

Contains SASS compiler options list

versions
Version versions;
Undocumented in source.

Meta