html2pug icon indicating copy to clipboard operation
html2pug copied to clipboard

Vue mode quoting anomaly

Open nottledim opened this issue 3 years ago • 1 comments

<q-dialog v-model='PromptName'/>

converts to:

q-dialog(v-model="'PromptName'")

which is not liked: VueCompilerError: v-model value must be a valid JavaScript member expression.

To my mind it's valid javascript and node doesn't mind but it is a bit odd.

It only seems to happen with v-model (maybe all v- attributes).

nottledim avatar Aug 25 '22 15:08 nottledim

To franky, I don't understand how to detect javascript expression this or not

dimensi avatar Oct 24 '22 22:10 dimensi