play.twirl.api
Brings the template engine as a string interpolator.
Basic usage:
import play.twirl.api.StringInterpolation val name = "Martin" val htmlFragment: Html = html"<div>Hello $name</div>"
Three interpolators are available: html, xml and js.
html
xml
js
Brings the template engine as a string interpolator.
Basic usage:
Three interpolators are available:
html
,xml
andjs
.