module Sprockets::EjsProcessor
def self.cache_key
def self.cache_key @cache_key ||= "#{name}:#{VERSION}".freeze end
def self.call(input)
# => "function(obj){...}"
assigned to a JS variable.
Returns a JS function definition String. The result should be
Compile template data with EJS compiler.
def self.call(input) data = input[:data] input[:cache].fetch([cache_key, data]) do Autoload::EJS.compile(data) end end