Class | Sass::Tree::ImportNode |
In: |
lib/sass/tree/import_node.rb
|
Parent: | RootNode |
A static node that wraps the {Sass::Tree} for an `@import`ed file. It doesn‘t have a functional purpose other than to add the `@import`ed file to the backtrace if an error occurs.
imported_filename | [R] |
The name of the imported file as it appears in the Sass document.
@return [String] |
Returns the resolved name of the imported file, as returned by \{Sass::Files#find_file_to_import}.
@return [String] The filename of the imported file.
This is an absolute path if the file is a `".sass"` or `".scss"` file.
@raise [Sass::SyntaxError] if `filename` ends in `".sass"` or `".scss"`
and no corresponding Sass file could be found.
Returns a static DirectiveNode if this is importing a CSS file, or parses and includes the imported Sass file.
@param environment [Sass::Environment] The lexical environment containing
variable and mixin values
Parses the imported file and runs the dynamic Sass for it.
@param environment [Sass::Environment] The lexical environment containing
variable and mixin values