mirror of
https://github.com/haml/haml.git
synced 2022-11-09 12:33:31 -05:00
Merge pull request #965 from q-centrix/eval-interpolated-change
Replace interpolated interpolation with cleaner method
This commit is contained in:
commit
28e9222a2f
2 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
# Haml Changelog
|
||||
|
||||
* Performance/memory improvement in `lib/haml/util.rb` that saves a string allocation [#965](https://github.com/haml/haml/pull/965) (thanks [Dillon Welch](https://github.com/oniofchaos))
|
||||
* Add constant for default options in `lib/haml/helpers/action_view_mods.rb` [#966](https://github.com/haml/haml/pull/966) (thanks [Dillon Welch](https://github.com/oniofchaos))
|
||||
* Performance/memory usage improvement in `lib/haml/buffer.rb` [#963](https://github.com/haml/haml/pull/963) (thanks [Dillon Welch](https://github.com/oniofchaos))
|
||||
|
||||
|
|
|
@ -212,7 +212,7 @@ MSG
|
|||
else
|
||||
scan.scan(/\w+/)
|
||||
end
|
||||
content = eval('"' + interpolated + '"')
|
||||
content = eval("\"#{interpolated}\"")
|
||||
content.prepend(char) if char == '@' || char == '$'
|
||||
content = "Haml::Helpers.html_escape((#{content}))" if escape_html
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue