k0kubun / hamlit

High Performance Haml Implementation
https://rubygems.org/gems/hamlit
Other
981 stars 59 forks source link

Fix rendering failure for static integer #50

Closed k0kubun closed 8 years ago

k0kubun commented 8 years ago

Fixing the issue reported by @yatmsu:

# input
%div{ id: 60 }

# output
<div id='<'>

In Temple, value of [:static, value] must be String. With String#concat in Temple::Filters::StaticMerger, Fixnum(60) is converted to "<" like #chr.