Tilt::Template
# File lib/sprockets/jst_processor.rb, line 5 def self.default_mime_type 'application/javascript' end
# File lib/sprockets/jst_processor.rb, line 9 def self.default_namespace 'this.JST' end
# File lib/sprockets/jst_processor.rb, line 19 def evaluate(scope, locals, &block) (function() { #{namespace} || (#{namespace} = {}); #{namespace}[#{scope.logical_path.inspect}] = #{indent(data)};}).call(this); end
# File lib/sprockets/jst_processor.rb, line 13 def prepare @namespace = self.class.default_namespace end
[Validate]
Generated with the Darkfish Rdoc Generator 2.