posthtml / posthtml-expressions

Use variables, JS-like expressions, and even markup-powered logic in your HTML.
Other
123 stars 20 forks source link

loopTags not working with multiple tags #74

Closed cossssmin closed 4 years ago

cossssmin commented 4 years ago

For example:

loopTags: ['for', 'each']
<each loop="item in array">
  {{ item }}
</each>

<for loop="item in array">
  {{ item }}
</for>

Currently it doesn't work, because the plugin only looks at the first tag in loopTags, it sees that it's for, and it fails.

Working on a PR right now.