ux icon indicating copy to clipboard operation
ux copied to clipboard

[TwigComponent] allow attributes to be prefixed with `@`

Open kbond opened this issue 1 year ago • 2 comments

Q A
Bug fix? yes
New feature? no
Issues Fix (partial) #1839
License MIT

Allow attributes to be prefixed with @ (like @click="!open").

kbond avatar Jul 04 '24 17:07 kbond

Currently, this PR only adds a failing test demonstrating the problem reported in #1839. I could use some help to fix!

kbond avatar Jul 04 '24 17:07 kbond

In TwigPreLexer , i guess consumeAttributeName should use another regexp than the one in consumeComponentName

But we need a lot of tests for this, as they cannot be class props !

smnandre avatar Jul 04 '24 22:07 smnandre