Class: Sinatra::JstPages::EcoEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/sinatra/jstpages.rb

Instance Attribute Summary

Attributes inherited from Engine

#file

Instance Method Summary collapse

Methods inherited from Engine

#contents, #initialize

Constructor Details

This class inherits a constructor from Sinatra::JstPages::Engine

Instance Method Details

#functionObject



214
215
216
# File 'lib/sinatra/jstpages.rb', line 214

def function
  "function() { var a = arguments.slice(); a.unshift(#{contents.inspect}); return eco.compile.apply(eco, a); }"
end