Class: HamlAssets::HamlSprocketsEngine
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- HamlAssets::HamlSprocketsEngine
- Defined in:
- lib/haml_assets/haml_sprockets_engine.rb
Defined Under Namespace
Modules: ViewContext
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.default_mime_type ⇒ Object
6 7 8 |
# File 'lib/haml_assets/haml_sprockets_engine.rb', line 6 def self.default_mime_type 'application/javascript' end |
Instance Method Details
#evaluate(scope, locals, &block) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/haml_assets/haml_sprockets_engine.rb', line 26 def evaluate(scope, locals, &block) begin "" + render_haml(view_context(scope), locals) rescue Exception => e Rails.logger.error "ERROR: compiling #{file} RAISED #{e}" Rails.logger.error "Backtrace: #{e.backtrace.join("\n")}" end end |