Class: HamlAssets::HamlSprocketsEngine
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- HamlAssets::HamlSprocketsEngine
show all
- Defined in:
- lib/haml_assets/haml_sprockets_engine.rb
Defined Under Namespace
Modules: ViewContext
Classes: LookupContext
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
74
75
76
77
78
79
80
81
|
# File 'lib/haml_assets/haml_sprockets_engine.rb', line 74
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
|