Class: SerenadeRails::Processor
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- SerenadeRails::Processor
- Defined in:
- lib/serenade_rails/processor.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_mime_type ⇒ Object
7 8 9 |
# File 'lib/serenade_rails/processor.rb', line 7 def self.default_mime_type 'application/javascript' end |
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
14 15 16 17 |
# File 'lib/serenade_rails/processor.rb', line 14 def evaluate(scope, locals, &block) name = scope.logical_path.gsub(/^views\//, "") SerenadeRails::Template.new(name, data.dup).render end |
#prepare ⇒ Object
11 12 |
# File 'lib/serenade_rails/processor.rb', line 11 def prepare end |