class Tilt::LessTemplate
Less templates do not support object scopes, locals, or yield.
/
Lessscss template implementation. See:
def self.engine_initialized?
def self.engine_initialized? defined? ::Less end
def allows_script?
def allows_script? false end
def evaluate(scope, locals, &block)
def evaluate(scope, locals, &block) @output ||= @engine.to_css(options) end
def initialize_engine
def initialize_engine require_template_library 'less' end
def prepare
def prepare if ::Less.const_defined? :Engine @engine = ::Less::Engine.new(data) else parser = ::Less::Parser.new(options.merge :filename => eval_file, :line => line) @engine = parser.parse(data) end end