Class: Sprockets::Mustache::Template::Processor
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- Sprockets::Mustache::Template::Processor
- Includes:
- ActionView::Helpers::JavaScriptHelper
- Defined in:
- lib/sprockets_spacely/mustache/template/processor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_mime_type ⇒ Object
7 8 9 |
# File 'lib/sprockets_spacely/mustache/template/processor.rb', line 7 def self.default_mime_type 'application/javascript' end |
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/sprockets_spacely/mustache/template/processor.rb', line 14 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 |
#prepare ⇒ Object
11 12 |
# File 'lib/sprockets_spacely/mustache/template/processor.rb', line 11 def prepare end |