bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

foreach throws error when provided object.list #109

Closed mhuebert closed 11 years ago

mhuebert commented 11 years ago

The following produces "Parser error: Expected child node or newline but "." found."

  foreach alert.list as message
    p #{message}

...a workaround is to explicitly assign alert.list to a 'list' variable:

  - list = alert.list
  foreach list as message
    p #{message}
bminer commented 11 years ago

Thanks. I will try to fix.