Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
no need for get_binding hack for Haml, it accepts a hash of locals
Browse files Browse the repository at this point in the history
  • Loading branch information
mislav committed Dec 3, 2008
1 parent 72aaf9d commit 266474f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hanna/template_page_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 266474f

Please sign in to comment.