play.twirl.api
Members list
Packages
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
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.
Type parameters
- A
-
self-type
Value parameters
- elements
-
Sub elements to traverse when creating the resultant string
- text
-
Formatted content
Attributes
- 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
- 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)
Type parameters
- T
-
The underlying type that this format applies to.
Attributes
- 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
- Supertypes
-
class BufferedContent[Html]trait Contenttrait Appendable[Html]class Objecttrait Matchableclass AnyShow all
Formatter for HTML content.
Type used in default JavaScript templates.
Type used in default JavaScript templates.
Attributes
- Companion
- object
- Supertypes
-
class BufferedContent[JavaScript]trait Contenttrait Appendable[JavaScript]class Objecttrait Matchableclass AnyShow all
Helper for JavaScript utility methods.
Helper for JavaScript utility methods.
Attributes
- Companion
- class
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
JavaScript.type
Formatter for JavaScript content.
Attributes
- 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
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- 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
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TwirlFeatureImports.type
Imports for useful Twirl helpers.
Imports for useful Twirl helpers.
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
TwirlHelperImports.type
Content type used in default text templates.
Content type used in default text templates.
Attributes
- Companion
- object
- Supertypes
-
class BufferedContent[Txt]trait Contenttrait Appendable[Txt]class Objecttrait Matchableclass AnyShow all
Content type used in default XML templates.
Content type used in default XML templates.
Attributes
- Companion
- object
- Supertypes
-
class BufferedContent[Xml]trait Contenttrait Appendable[Xml]class Objecttrait Matchableclass AnyShow all
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
.