TypedTag

scalatags.Text.TypedTag
case class TypedTag[+Output <: String](tag: String, modifiers: List[Seq[Modifier]], void: Boolean) extends TypedTag[Builder, Output, String], Frag, Writable

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Writable
trait Frag
trait TypedTag[Builder, Output, String]
trait Frag[Builder, Output]
trait Modifier[Builder]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def apply(xs: Modifier*): TypedTag[Output]

Add the given modifications (e.g. additional children, or new attributes) to the TypedTag.

Add the given modifications (e.g. additional children, or new attributes) to the TypedTag.

Attributes

override def httpContentType: Option[String]

Attributes

Definition Classes
Writable
def render: Output

Collapses this scalatags tag tree and returns an Output

Collapses this scalatags tag tree and returns an Output

Attributes

override def toString: String

Converts an ScalaTag fragment into an html string

Converts an ScalaTag fragment into an html string

Attributes

Definition Classes
Any
def writeTo(strb: Writer): Unit

Serialize this TypedTag and all its children out to the given StringBuilder.

Serialize this TypedTag and all its children out to the given StringBuilder.

Although the external interface is pretty simple, the internals are a huge mess, because I've inlined a whole lot of things to improve the performance of this code ~4x from what it originally was, which is a pretty nice speedup

Attributes

Inherited methods

def applyTo(b: Builder): Unit

Applies this modifier to the specified Builder, such that when rendering is complete the effect of adding this modifier can be seen.

Applies this modifier to the specified Builder, such that when rendering is complete the effect of adding this modifier can be seen.

Attributes

Inherited from:
Frag
def build(b: Builder): Unit

Walks the modifiers to apply them to a particular Builder. Super sketchy/procedural for max performance.

Walks the modifiers to apply them to a particular Builder. Super sketchy/procedural for max performance.

Attributes

Inherited from:
TypedTag
def contentLength: Option[Long]

Attributes

Inherited from:
Writable
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product
def writeBytesTo(out: OutputStream): Unit

Attributes

Inherited from:
Frag