@LeftBracket= { @RightBracket= }, :
@titles.map { title =>
<h1>{title} @{LeftBracket}mmm@RightBracket</h1>
}
Side note somewhat related to your question:
My impression is that if the brackets do not match (that is, }for each {),
the template compilation failed, so maybe the @RightBracketonly way to insert one }? This would be useful if you needed to write:
@titles.map { title =>
hello :-}
}
: -}
source
share