lib/hogan_assets/tilt.rb in hogan_assets-1.3.3 vs lib/hogan_assets/tilt.rb in hogan_assets-1.3.4

- old
+ new

@@ -13,11 +13,11 @@ def evaluate(scope, locals, &block) template_path = TemplatePath.new scope template_namespace = HoganAssets::Config.template_namespace text = if template_path.is_hamstache? - raise "Unable to complile #{template_path.full_path} because haml is not available. Did you add the haml gem?" unless HoganAssets::Config.haml_available? - Haml::Engine.new(data, @options).render + raise "Unable to compile #{template_path.full_path} because haml is not available. Did you add the haml gem?" unless HoganAssets::Config.haml_available? + Haml::Engine.new(data, HoganAssets::Config.haml_options.merge(@options)).render else data end compiled_template = Hogan.compile(text)