neuland/jade4j

How to get loop index?

manish-in-java opened this issue · 2 comments

Consider the following code:

table
  thead
    tr
      th S.No.
      th Name
  tbody
    for person in persons
      tr
        td ?
        td person.name

In the code above I would like to display the record number instead of the question mark (?). Is this possible? If yes, how? If not, can this support be added?

Please see the jade/pug syntax for this. Jade4j is "just" a java implementation of the language.

https://naltatis.github.io/jade-syntax-docs/#for

Thanks, got it.