sisoftrg/jade.php

Wrong parsing of PHP style foreach

lehni opened this issue · 1 comments

I tried this in a template:

- foreach($pages->visible() as $p):

And it was wrongly translated to:

<?php for(each($pages->visible() as $p)) { ?>

fixed with latest commit.

also you can use for exactly same result:

each $p in $pages->visible()
  some action