twirl icon indicating copy to clipboard operation
twirl copied to clipboard

Parsing @{...} blocks along with other elements

Open pvlugter opened this issue 11 years ago • 3 comments

See https://github.com/playframework/playframework/issues/3807

A template like this:

@(x: String)
@x @{x}

produces the wrong code:

_display_(x{{x}})

causing compile errors.

@x @x, @{x} @x, and @{x} @{x} work fine.

pvlugter avatar Jan 21 '15 22:01 pvlugter

I don't think that's a bug but a feature of the new parser. However I am not 100% sure...

mkurz avatar Nov 13 '18 14:11 mkurz

I wonder if #196 fixes this too.

dwijnand avatar Nov 28 '18 11:11 dwijnand

No it doesn't. However I think this is actually not a bug, but a feature (funny, I know), see this method.

mkurz avatar Nov 28 '18 11:11 mkurz