class Tilt::SassTemplate
Sass templates do not support object scopes, locals, or yield.
/
Sass template implementation. See:
def self.engine_initialized?
def self.engine_initialized? defined?(::Sass::Engine) && defined?(::Sass::Plugin) end
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) @output ||= @engine.render end
def initialize_engine
def initialize_engine require_template_library 'sass' require_template_library 'sass/plugin' end
def prepare
def prepare @engine = ::Sass::Engine.new(data, ::Sass::Plugin.engine_options(sass_options)) end
def sass_options
def sass_options options.merge(:filename => eval_file, :line => line, :syntax => :sass) end