Class: Sinatra::JstPages::EcoEngine
- Defined in:
- lib/sinatra/jstpages.rb
Instance Attribute Summary
Attributes inherited from Engine
Instance Method Summary collapse
Methods inherited from Engine
#contents, #initialize, #wrap_jst
Constructor Details
This class inherits a constructor from Sinatra::JstPages::Engine
Instance Method Details
#compile! ⇒ Object
237 238 239 240 241 |
# File 'lib/sinatra/jstpages.rb', line 237 def compile! wrap_jst(name) do "function() { var a = arguments.slice(); a.unshift(#{contents.inspect}); return eco.compile.apply(eco, a); }" end end |