harrydeluxe / php-liquid

A PHP port of Ruby's Liquid Templates
http://www.delacap.com/artikel/Liquid-Templates/
MIT License
239 stars 119 forks source link

Assign isn't global if set inside for loop or if statement #12

Closed Thingmand closed 12 years ago

Thingmand commented 12 years ago

You can assign outside or inside af loop/statement, but variabels assign inside won't change outside, neither re-assignment.

Therefore the second example on https://github.com/harrydeluxe/php-liquid/wiki/Variable-Assignment isn't working as intended.

harrydeluxe commented 12 years ago

Thanks for the tip. In current tag it is fixed.