Module: Haml::More::CoffeeScript

Includes:
Filters::Base
Defined in:
lib/haml/more/coffee_script.rb

Defined Under Namespace

Classes: ClientCompiler, Compiler, JohnsonCompiler, NodeCompiler

Class Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Class Attribute Details

.compilerObject



124
125
126
# File 'lib/haml/more/coffee_script.rb', line 124

def compiler
  @compiler ||= Compiler.new
end

Class Method Details

.activateObject



128
129
130
131
# File 'lib/haml/more/coffee_script.rb', line 128

def activate
  compiler
  true
end

Instance Method Details

#render(text) ⇒ Object



134
135
136
# File 'lib/haml/more/coffee_script.rb', line 134

def render(text)
  Haml::More::CoffeeScript.compiler.render text
end