module Sprockets::EcoTemplate
def self.call(input)
# => "function(...) {...}"
assigned to a JS variable.
Returns a JS function definition String. The result should be
Compile template data with Eco compiler.
def self.call(input) data = input[:data] key = ['EcoTemplate', ::Eco::Source::VERSION, VERSION, data] input[:cache].fetch(key) do ::Eco.compile(data) end end