Package

play.twirl

api

Permalink

package api

Visibility
  1. Public
  2. All

Type Members

  1. trait Appendable[T] extends AnyRef

    Permalink

    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.

    To do

    Change name to reflect not appendable

  2. case class BaseScalaTemplate[T <: Appendable[T], F <: Format[T]](format: F) extends Product with Serializable

    Permalink
  3. abstract class BufferedContent[A <: BufferedContent[A]] extends Appendable[A] with Content

    Permalink

    Appendable content using a StringBuilder.

    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.

    A

    self-type

  4. trait Content extends AnyRef

    Permalink

    Generic type representing content to be sent over an HTTP response.

  5. trait Format[T <: Appendable[T]] extends AnyRef

    Permalink

    A template format defines how to properly integrate content for a type T (e.g.

    A template format defines how to properly integrate content for a type T (e.g. to prevent cross-site scripting attacks)

    T

    The underlying type that this format applies to.

  6. class Html extends BufferedContent[Html]

    Permalink

    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.

  7. class JavaScript extends BufferedContent[JavaScript]

    Permalink

    Type used in default JavaScript templates.

  8. trait Template0[Result] extends AnyRef

    Permalink
  9. trait Template1[A, Result] extends AnyRef

    Permalink
  10. trait Template10[A, B, C, D, E, F, G, H, I, J, Result] extends AnyRef

    Permalink
  11. trait Template11[A, B, C, D, E, F, G, H, I, J, K, Result] extends AnyRef

    Permalink
  12. trait Template12[A, B, C, D, E, F, G, H, I, J, K, L, Result] extends AnyRef

    Permalink
  13. trait Template13[A, B, C, D, E, F, G, H, I, J, K, L, M, Result] extends AnyRef

    Permalink
  14. trait Template14[A, B, C, D, E, F, G, H, I, J, K, L, M, N, Result] extends AnyRef

    Permalink
  15. trait Template15[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, Result] extends AnyRef

    Permalink
  16. trait Template16[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Result] extends AnyRef

    Permalink
  17. trait Template17[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, Result] extends AnyRef

    Permalink
  18. trait Template18[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, Result] extends AnyRef

    Permalink
  19. trait Template19[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, Result] extends AnyRef

    Permalink
  20. trait Template2[A, B, Result] extends AnyRef

    Permalink
  21. trait Template20[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, Result] extends AnyRef

    Permalink
  22. trait Template21[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, Result] extends AnyRef

    Permalink
  23. trait Template22[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, Result] extends AnyRef

    Permalink
  24. trait Template3[A, B, C, Result] extends AnyRef

    Permalink
  25. trait Template4[A, B, C, D, Result] extends AnyRef

    Permalink
  26. trait Template5[A, B, C, D, E, Result] extends AnyRef

    Permalink
  27. trait Template6[A, B, C, D, E, F, Result] extends AnyRef

    Permalink
  28. trait Template7[A, B, C, D, E, F, G, Result] extends AnyRef

    Permalink
  29. trait Template8[A, B, C, D, E, F, G, H, Result] extends AnyRef

    Permalink
  30. trait Template9[A, B, C, D, E, F, G, H, I, Result] extends AnyRef

    Permalink
  31. class Txt extends BufferedContent[Txt]

    Permalink

    Content type used in default text templates.

  32. class Xml extends BufferedContent[Xml]

    Permalink

    Content type used in default XML templates.

Value Members

  1. object Formats

    Permalink
  2. object Html

    Permalink

    Helper for HTML utility methods.

  3. object HtmlFormat extends Format[Html]

    Permalink

    Formatter for HTML content.

  4. object JavaScript

    Permalink

    Helper for JavaScript utility methods.

  5. object JavaScriptFormat extends Format[JavaScript]

    Permalink

    Formatter for JavaScript content.

  6. object MimeTypes

    Permalink
  7. object TemplateMagic

    Permalink
  8. object Txt

    Permalink

    Helper for utilities Txt methods.

  9. object TxtFormat extends Format[Txt]

    Permalink

    Formatter for text content.

  10. object Xml

    Permalink

    Helper for XML utility methods.

  11. object XmlFormat extends Format[Xml]

    Permalink

    Formatter for XML content.

Ungrouped