Builder

class Builder(var children: Array[Frag], var attrs: Array[(String, ValueSource)])

Object to aggregate the modifiers into one coherent data structure so the final HTML string can be properly generated. It's really gross internally, but bloody fast. Even using pre-built data structures like mutable.Buffer slows down the benchmarks considerably. Also exposes more of its internals than it probably should for performance, so even though the stuff isn't private, don't touch it!

Companion
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def addChild(c: Frag): Unit
def appendAttr(k: String, v: ValueSource): Unit
def appendAttrStrings(v: ValueSource, sb: Writer): Unit
def attrIndex(k: String): Int
def attrsString(v: ValueSource): String
def setAttr(k: String, v: ValueSource): Unit

Concrete fields

final var attrIndex: Int
var attrs: Array[(String, ValueSource)]
final var childIndex: Int
var children: Array[Frag]