stonean/slim — Issue #219: execs attribute function twice
Author: joaomilho
Created: 2012-01-10 20:01:18+00:00
State: open

Try 4 yourself:

# app helper
module ApplicationHelper
@@x = 0
def x_succ
@@x += 500
end
end

# slim
b = x_succ
br
b = x_succ
br
b = x_succ
br
input[value=x_succ]
br
input[value=x_succ]
br
input[value=x_succ]

Result: 1000, 2000, 3000, 5000, 7000, 9000. Weeeird. Any idea on that?