StringInterpolation
play.twirl.api.`package`.StringInterpolation
final implicit class StringInterpolation(val sc: StringContext) extends AnyVal
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.
Attributes
- Graph
-
- Supertypes
-
class AnyValtrait Matchableclass Any
Members list
In this article