class

Sass::Compiler

Inherits Sass < Reference < Object

A reusable compiler instance for API compatibility with sass.cr

Constructors

new(style : String = "expanded", source_map : Bool = false, source_map_embed : Bool = false, source_map_urls : String = "relative", embed_sources : Bool = false, charset : Bool = true, error_css : Bool = true, quiet : Bool = false, quiet_deps : Bool = false, verbose : Bool = false, load_paths : Array(String) = [] of String, include_path : Array(String) | String | Nil = nil)
Source

Instance methods

charset
Source
charset=(charset : Bool)
Source
compile(source : String, is_indented_syntax_src : Bool = false, source_path : String | Nil = nil) : String
Source
compile_file(path : String, is_indented_syntax_src : Bool = false) : String
Source
embed_sources
Source
embed_sources=(embed_sources : Bool)
Source
error_css
Source
error_css=(error_css : Bool)
Source
include_path
Source
include_path=(include_path : Array(String) | String | Nil)
Source
load_paths
Source
load_paths=(load_paths : Array(String))
Source
quiet
Source
quiet=(quiet : Bool)
Source
quiet_deps
Source
quiet_deps=(quiet_deps : Bool)
Source
source_map
Source
source_map=(source_map : Bool)
Source
source_map_embed
Source
source_map_embed=(source_map_embed : Bool)
Source
source_map_urls
Source
source_map_urls=(source_map_urls : String)
Source
style

Backward compatibility properties

Source
style=(style : String)

Backward compatibility properties

Source
verbose
Source
verbose=(verbose : Bool)
Source