Class: Stylus::Rails::StylusTemplate

Inherits:
Tilt::StylusTemplate show all
Defined in:
lib/stylus/tilt/rails.rb

Constant Summary collapse

EXCLUDED_EXTENSIONS =
%w{ css js gzip json md html }

Instance Method Summary collapse

Methods inherited from Tilt::StylusTemplate

engine_initialized?, #initialize_engine, #prepare

Instance Method Details

#evaluate(scope, locals, &block) ⇒ Object

Internal: Appends stylus mixin for asset_url and asset_path support



12
13
14
15
# File 'lib/stylus/tilt/rails.rb', line 12

def evaluate(scope, locals, &block)
  @data = build_mixin_body(scope) + data
  super
end