Pug: Issue with dynamic property access inside tag interpolation

This issue has been created since 2022-10-20.

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.

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-12-10
Star Count 201155
Watcher Count 6070
Fork Count 33134
Issue Count 595

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
AnimationLimiter error when used with TabBar setState() called after dispose(): _AnimationLimiterState 0 2020-10-12 2022-11-17
Add option for curve 1 2020-07-22 2022-11-17
Migrate to null safety 4 2021-03-02 2022-11-17
code block will not collapse if using optional chaining WITH backtick literals 8 2022-07-21 2022-08-28
Add cli argument to force disable pv for launching in cron scripts 1 2021-08-30 2022-11-12
[Feature Request] Command execution 9 2021-10-03 2022-08-17
Halide error during ./setupenv.sh Ubuntu 20.04 0 2022-02-14 2022-08-25
Weird behaviours of buttons in the replay scene 1 2022-07-30 2022-10-16
[BUG] NPE in very first download after installation 0 2022-11-23 2022-11-25
Python 3.8 and 3.9 support 3 2021-03-30 2022-12-09
Possibility to set finance account length 1 2022-04-03 2022-11-29
Bug: $CIRRUS_BRANCH is changed on tags 3 2022-01-19 2022-08-17
Extension prevents login 2 2021-04-27 2022-11-14
Wrong skip condition 8 2021-11-23 2022-11-29
Replace the "Visit website.example" buttons with "Visit Homepage" or "Visit Repository" 4 2022-04-23 2022-10-11
[BUG] : Can't install and can't remove it 1 2022-11-20 2022-12-06
musl-ar not executing while building ring 0 2022-10-24 2022-11-05
Error when double-clicking a shape 6 2021-07-06 2022-09-29
wp cli throwing errors 2 2022-10-01 2022-11-26
Suggestion 11 2020-05-26 2022-01-04
Laravel must be add provider to config/app.php 2 2020-03-07 2022-12-01
Change order of websocket requests 2 2022-02-03 2022-09-23
Firebase Notification Auto Appear 5 2021-07-05 2022-10-06
Add missing unit tests for the `QueryBuilderImpl` 0 2021-10-01 2022-10-26
Вернуть эмоут *vomit / скейл говна от сытости 0 2021-12-31 2022-10-30
the tag for v5.07 points to the wrong commit 1 2021-03-21 2022-11-12
Problem when send batch with compression 4 2021-09-14 2022-11-19
Hash navigation not working in Next.js 5 2021-05-02 2022-10-07
Importing mdx files from node_modules doesn't work 8 2021-05-02 2022-10-14
`requestUrl` doesn't allow unusual method on Android 13 2022-03-23 2022-11-25
Should we continue the TypeScript migration in v6? 1 2021-12-21 2022-09-29
Tile downloads with newer Android System Webview implementations fail 11 2022-03-15 2022-11-17
🐛 Bug Report: Divider UI problem 0 2022-09-05 2022-09-11
Intermittent UI test failure - org.mozilla.reference.browser.ui.MediaPlaybackTest - audioPlaybackTest 4 2021-08-15 2022-11-18
BarcodeDetector will be supported on all platforms in Chromium 1 2021-11-26 2022-07-27
VR Controllers - throttles should move together like the Asobo version 1 2022-06-11 2022-12-09
How to retrieve id_token for OIDC 0 2021-07-01 2022-11-15
Link Checker Report 0 2021-04-27 2021-12-28
Move scaladoc documentation from dotty.epfl.ch to a guide 6 2021-07-21 2022-07-05
support for no_std is broken 3 2019-05-01 2022-11-18
deploymentmanager mgmt 2018-09-01-preview has invalid arguments 4 2021-10-18 2022-11-30
avoid underscore as identifier for Scala 2.13.x ? 1 2019-01-22 2022-12-09
Value types in metadata 0 2021-03-04 2022-09-29
Multiple Switch component updates only the first switch 1 2022-08-01 2022-11-29
Reduce Broadcasting 4 2021-10-05 2022-01-13
Jaccard Similarity doesn't work with concurrency 3 2019-04-16 2022-11-01
Questions about Configuration 3 2016-07-28 2022-11-25
Belkin RT3200 - v22.03.0-rc4 - wifi failure 6 2022-06-23 2022-10-04
nn.PixelShuffle的pytorch到tflite 4 2022-03-02 2022-09-06
asp-page does not work as described 2 2022-01-22 2022-10-08