Pike v8.0 release 1738

Module Web.Sass


Constant HTTP_IMPORT_NONE
Constant HTTP_IMPORT_GREEDY
Constant HTTP_IMPORT_ANY

constant int Web.Sass.HTTP_IMPORT_NONE
constant int Web.Sass.HTTP_IMPORT_GREEDY
constant int Web.Sass.HTTP_IMPORT_ANY

Description

Description:

HTTP_IMPORT_NONE

Default value of Compiler.http_import. Prohibits imports over HTTP.

HTTP_IMPORT_GREEDY

Allow imports over HTTP only if the returned content type is text/scss.

HTTP_IMPORT_ANY

Anything goes.


Constant LIBSASS_VERSION

constant string Web.Sass.LIBSASS_VERSION

Description

The libsass version, as a string, this module was compiled agains.


Constant STYLE_NESTED
Constant STYLE_EXPANDED
Constant STYLE_COMPACT
Constant STYLE_COMPRESSED

constant int Web.Sass.STYLE_NESTED
constant int Web.Sass.STYLE_EXPANDED
constant int Web.Sass.STYLE_COMPACT
constant int Web.Sass.STYLE_COMPRESSED

Description

Styling of output. Use as argument to Compiler.set_output_style()

STYLE_NESTED

The default setting. The output will look like:

a {
  property: value;
  other-property: value; }
  a:hover {
    property: value; }
b {
  property: value; }
STYLE_EXPANDED

Fully expanded output:

a {
  property: value;
  other-property: value;
}
a:hover {
  property: value;
}
b {
  property: value;
}
STYLE_COMPACT

Somewhat minified output:

a { property: value; other-prop: value }
a:hover { property: value; }
b { property: value; }
STYLE_COMPRESSED

Minified output

a{property:value;other-property:value}a:hover{property:value}b{property:value}