Tilt::Template
Tilt engine class for the Eco compiler. Depends on the `eco` gem.
For more infomation see:
https://github.com/sstephenson/ruby-eco https://github.com/sstephenson/eco
Compile template data with Eco compiler.
Returns a JS function definition String. The result should be assigned to a JS variable.
# => "function(...) {...}"
# File lib/sprockets/eco_template.rb, line 34 34: def evaluate(scope, locals, &block) 35: Eco.compile(data) 36: end
Autoload eco library. If the library isn’t loaded, Tilt will produce a thread safetly warning. If you intend to use `.eco` files, you should explicitly require it.
# File lib/sprockets/eco_template.rb, line 20 20: def initialize_engine 21: require_template_library 'eco' 22: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.