0

Got a compilation error using string "{" in Playframework 2.5.8 template expression like

<div>@{"{" + value}</div>

however these both compile

<div>@{"x" + value}</div>
<div>@("{" + value)</div>

It seems I need some escaping there?

vlasov
  • 88
  • 1
  • 8

1 Answers1

0

After many attempts got round with

@defining("{"){e => @{e + value}}
vlasov
  • 88
  • 1
  • 8