vue icon indicating copy to clipboard operation
vue copied to clipboard

Pug: Issue with dynamic property access inside tag interpolation

Open arnaugiralt opened this issue 2 years ago • 0 comments

Version

2.7.13

Reproduction link

codesandbox.io

Steps to reproduce

See minimal repro sandbox. In short, interpolate a tag in a pug template, and attempt to access a property dynamically, as in foo[bar].baz.

What is expected?

Dynamic property access should work the same as in HTML templates.

What is actually happening?

The value is not rendered properly. It renders like foo[bar.baz.


I don't know if this issue belongs here or in the pug-plain-loader repo. Please let me know if I should move it there.

arnaugiralt avatar Oct 20 '22 11:10 arnaugiralt