class

Hwaro::Assets::Sass::Importer

Inherits Reference / Object

Constructors

new(loader : Loader, root : String = Dir.current)
Source

Instance methods

display_path(canonical : String) : String

Path shown in error messages / parsed module ASTs — project- relative when possible.

Source
load(url : String, from_file : String, path : String, line : Int32, column : Int32) : Tuple(String, String)

Resolves url from from_file and returns {canonical_path, source}. Raises SyntaxError (located at the directive) when the target is missing, ambiguous, or escapes the project root.

Source
root
Source