I'm trying to figure out how to have html content passed into a template from another template as a vararg in Scala with Play 2.5.
So for example, I have a template defined with this at the top:
@(foo: String)(content: Html*)(implicit bar: Bar)
I'm able to invoke it in another template with
@template("fooString")(Html("123"), Html("abc"))
Which works, but doesn't escape strings I want to use in the html.
I'm trying to find something that works with the curly-brace syntax, like
@template("fooString"){"123"}{abc}
But I haven't found any permutations of that syntax that have worked. I asked this question on Stack Overflow, but haven't gotten any responses:
http://stackoverflow.com/questions/40810861/scala-play-template-vararg-htmlcontent , and someone from work recommended I ask the question here. Does anyone know how I should go about this? Thanks in advance!