module Sprockets::EcoProcessor

def self.cache_key

def self.cache_key
  @cache_key ||= "#{name}:#{Autoload::Eco::Source::VERSION}:#{VERSION}".freeze
end

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]
  input[:cache].fetch([cache_key, data]) do
    Autoload::Eco.compile(data)
  end
end