play.twirl.api
Members list
Type members
Classlikes
A type that works with BaseScalaTemplate This used to support +=, but no longer is required to.
A type that works with BaseScalaTemplate This used to support +=, but no longer is required to.
Attributes
- Todo:
Change name to reflect not appendable
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Graph
- Supertypes
- trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Appendable content using a StringBuilder. Either specify elements or text, not both.
Appendable content using a StringBuilder. Either specify elements or text, not both.
Using an Either[TraversableOnce[A], String] impacts performance in an already contentious part of code, so it has been done with both parameters instead.
Attributes
- A
self-type
- elements
Sub elements to traverse when creating the resultant string
- text
Formatted content
- Graph
- Supertypes
- Known subtypes
- Self type
- A
Generic type representing content to be sent over an HTTP response.
Generic type representing content to be sent over an HTTP response.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
A template format defines how to properly integrate content for a type T
(e.g. to prevent cross-site scripting
attacks)
A template format defines how to properly integrate content for a type T
(e.g. to prevent cross-site scripting
attacks)
Attributes
- T
The underlying type that this format applies to.
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Known subtypes
Content type used in default HTML templates.
Content type used in default HTML templates.
This has 3 states, either it's a tree of elements, or a leaf, if it's a leaf, it's either safe text, or unsafe text that needs to be escaped when written out.
Attributes
- Companion:
- object
- Graph
- Supertypes
Formatter for HTML content.
Type used in default JavaScript templates.
Type used in default JavaScript templates.
Attributes
- Companion:
- object
- Graph
- Supertypes
- class BufferedContent[JavaScript]trait Contenttrait Appendable[JavaScript]class Objecttrait Matchableclass Any
Helper for JavaScript utility methods.
Helper for JavaScript utility methods.
Attributes
- Companion:
- class
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- JavaScript.type
Formatter for JavaScript content.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- MimeTypes.type
Brings the template engine as a string interpolator.
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
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
Imports that provide Twirl language features.
Imports that provide Twirl language features.
This includes:
- @defining
- @using
- iterable/option/string as boolean for if statements
- default values (maybeFoo ? defaultFoo)
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- TwirlFeatureImports.type
Imports for useful Twirl helpers.
Imports for useful Twirl helpers.
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- TwirlHelperImports.type
Content type used in default text templates.
Content type used in default XML templates.
Implicits
Implicits
Brings the template engine as a string interpolator.
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
.