object TwirlFeatureImports
Ordering
- Alphabetic
- By Inheritance
Inherited
- TwirlFeatureImports
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- implicit class TwirlDefaultValue extends AnyRef
Provides default values, such that an empty sequence, string, option, false boolean, or null will render the default value.
Value Members
- def defining[T](t: T)(handler: (T) => Any): Any
Provides the
@defining
language feature, that lets you set a local val that can be reused.Provides the
@defining
language feature, that lets you set a local val that can be reused.- t
The defined val.
- handler
The block to handle it.
- implicit def twirlIterableToBoolean(x: Iterable[_]): Boolean
Adds "truthiness" to iterables, making them false if they are empty.
- implicit def twirlOptionToBoolean(x: Option[_]): Boolean
Adds "truthiness" to options, making them false if they are empty.
- implicit def twirlStringToBoolean(x: String): Boolean
Adds "truthiness" to strings, making them false if they are empty.
- def using[T](t: T): T
Provides the
@using
language feature.
Imports that provide Twirl language features.
This includes: