\SassCompressedRenderer
SassCompressedRenderer class.
Compressed style takes up the minimum amount of space possible, having no
whitespace except that necessary to separate selectors and a newline at the
end of the file. It's not meant to be human-readable
Synopsis
class SassCompressedRenderer
extends SassRenderer
{
- // Inherited constants from SassRenderer
- const STYLE_COMPRESSED = 'compressed';
- const STYLE_COMPACT = 'compact';
- const STYLE_EXPANDED = 'expanded';
- const STYLE_NESTED = 'nested';
- const INDENT = ' ';
- // methods
- protected string between()
- protected string end()
- protected string getIndent()
- public string renderComment()
- public string renderDirective()
- public string renderProperties()
- public string renderProperty()
- public string renderRule()
- protected string renderSelectors()
- // Inherited methods from SassRenderer
- public static SassRenderer getRenderer()
Hierarchy
Extends
Constants
Name | Value |
---|---|
STYLE_COMPRESSED | 'compressed' |
STYLE_COMPACT | 'compact' |
STYLE_EXPANDED | 'expanded' |
STYLE_NESTED | 'nested' |
INDENT | ' ' |
Methods
protected
- between() — Renders the brace between the selectors and the properties
- end() — Renders the brace at the end of the rule
- getIndent() — Returns the indent string for the node
- renderSelectors() — Renders the rule's selectors
public
- renderComment() — Renders a comment.
- renderDirective() — Renders a directive.
- renderProperties() — Renders properties.
- renderProperty() — Renders a property.
- renderRule() — Renders a rule.
Inherited from SassRenderer
public
- getRenderer() — Returns the renderer for the required render style.