Class: Sinatra::JstPages::EcoEngine

Inherits:
Engine
  • Object
show all
Defined in:
lib/furnace-xray/lib/jst_pages.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



210
211
212
# File 'lib/furnace-xray/lib/jst_pages.rb', line 210

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