neuland/jade4j

Mixin's block argument can't execute multiple times in a loop

sorra opened this issue · 1 comments

sorra commented

Using Jade4j 1.3.1
In the example, the mixin takes a block and executes it in a loop, but only the first time it gets executed.

mixin articles
  for i in [1,2]
    h3 Title
    block

+articles
  button Delete

Renders

<h3>Title</h3>
<button>Delete</button>
<h3>Title</h3>

Fixed in 1.3.2