Class: Sinatra::JstPages::JadeEngine
- 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
229 230 231 232 233 |
# File 'lib/sinatra/jstpages.rb', line 229 def compile! wrap_jst(name) do "require('jade').compile(#{contents.inspect})" end end |