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.

Methods

_cssize   _perform   cssize   full_filename   invisible?   new   perform!   to_sass   to_scss  

Attributes

imported_filename  [R]  The name of the imported file as it appears in the Sass document.

@return [String]

Public Class methods

@param imported_filename [String] The name of the imported file

Public Instance methods

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.

Protected Instance methods

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

[Validate]