Skip to content

Commit

Permalink
1.9 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronblohowiak committed Nov 19, 2012
1 parent efe1c86 commit eed7e28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ejs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ def compile(source, options = {})
compiled_str << js_escape!(source[idx, next_match[:begin]-idx].to_s)

case next_match[:name]
when "escape":
when "escape" then
compiled_str << "',(''+#{next_match[:match]})#{escape_function},'"
when "interpolate":
when "interpolate" then
compiled_str << "', #{next_match[:match]},'"
when "evaluate":
when "evaluate" then
compiled_str << "'); #{next_match[:match]}; __p.push('"
end

Expand Down

0 comments on commit eed7e28

Please sign in to comment.