Sha256: ac00098b6500dd3eedd1254378497ee56a22a696e5719d61a6cf23f3433e2442
Contents?: true
Size: 619 Bytes
Versions: 1
Compression:
Stored size: 619 Bytes
Contents
module Sprockets module Mustache module Template class Processor < Tilt::Template include ActionView::Helpers::JavaScriptHelper def self.default_mime_type 'application/javascript' end def prepare end def evaluate(scope, locals, &block) namespace = Namespace.value || "window" library = Library.value || "jQuery" Generator.new(namespace, scope.logical_path, escape_javascript(data), library).generate end end end end register_engine '.mustache', ::Sprockets::Mustache::Template::Processor end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sprockets_spacely-0.1.0 | lib/sprockets_spacely/mustache/template/processor.rb |