twirl
twirl copied to clipboard
Parsing @{...} blocks along with other elements
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.
I don't think that's a bug but a feature of the new parser. However I am not 100% sure...
I wonder if #196 fixes this too.
No it doesn't. However I think this is actually not a bug, but a feature (funny, I know), see this method.