# Class Web.Sass.Api

Description

  Low-level Sass/SCSS compiler.

  You probably want to use `Compiler` instead of this class.

See also

  `Compiler`

Variable include_path

  ``string(8bit)` Web.Sass.Api.include_path`

Description

  The base path of `@import`s. Note! This needs to be set when compile_string() is used.

Variable omit_source_map_url

  ```bool`` Web.Sass.Api.omit_source_map_url`

Description

  Set whether writing the `sourceMappingUrl=#` or not.

Variable output_style

  ``int(2bit)` Web.Sass.Api.output_style`

Description

  Determines the level of compression on the generated output.

See also

  STYLE_NESTED, STYLE_EXPANDED, STYLE_COMPACT and STYLE_COMPRESSED.

Variable precision

  ``int` Web.Sass.Api.precision`

Description

  Set the precision of fractional numbers. Default is `5`.

Variable sass_syntax

  ```bool`` Web.Sass.Api.sass_syntax`

Description

  Set whether the code is Sass syntax, i.e. indented syntax or not. Only necessary when using compile_string()

Variable source_comments

  ```bool`` Web.Sass.Api.source_comments`

Description

  Emit comments in the generated CSS indicating the corresponding source line. Default is `false`.

Variable source_map_embed

  ```bool`` Web.Sass.Api.source_map_embed`

Description

  Set whether embedding `sourceMappingUrl=#` as data uri or not.

Variable source_map_file

  ``string(8bit)` Web.Sass.Api.source_map_file`

Description

  Set the path of the source map file.

Variable source_map_root

  ``string(8bit)` Web.Sass.Api.source_map_root`

Description

  Set the root path of the source files, relative to where the source.map file is written.