object TwirlFeatureImports
Imports that provide Twirl language features.
This includes:
- @defining - @using - iterable/option/string as boolean for if statements - default values (maybeFoo ? defaultFoo)
- Alphabetic
- By Inheritance
- TwirlFeatureImports
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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. - final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()