Permalink
Browse files

no need for get_binding hack for Haml, it accepts a hash of locals

  • Loading branch information...
1 parent 72aaf9d commit 266474f5601f704437ffc4c5a980a7be76b7c21f @mislav committed Dec 3, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hanna/template_page_patch.rb
@@ -11,7 +11,7 @@ def write_html_on(io, values)
case template
when Haml::Engine
silence_warnings do
- template.to_html(get_binding, :values => values) { previous }
+ template.to_html(binding, :values => values) { previous }
end
when Sass::Engine
silence_warnings { template.to_css }

0 comments on commit 266474f

Please sign in to comment.