Dom

zio.http.template2.Dom
See theDom companion object
sealed trait Dom extends Modifier, Product, Serializable

Modern DOM library for ZIO HTTP inspired by Laminar and ScalaTags. Provides type-safe, composable, and transformable DOM trees.

Attributes

Companion
object
Graph
Supertypes
trait Modifier
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
trait Element
class Generic
class Script
class Style
object Empty
class Fragment
class RawHtml
class Text
Show all
Self type
Dom

Members list

Value members

Concrete methods

def collect(predicate: PartialFunction[Dom, Dom]): List[Dom]

Collect all elements matching the predicate

Collect all elements matching the predicate

Attributes

def filter(predicate: Dom => Boolean): Dom

Filter children recursively based on a predicate

Filter children recursively based on a predicate

Attributes

def find(predicate: Dom => Boolean): Option[Dom]

Find the first element matching the predicate

Find the first element matching the predicate

Attributes

def render: String

Render the DOM to HTML string without indentation

Render the DOM to HTML string without indentation

Attributes

def render(indentation: Boolean): String

Render the DOM to HTML string with optional indentation

Render the DOM to HTML string with optional indentation

Attributes

Render the DOM to minified HTML string

Render the DOM to minified HTML string

Attributes

def transform(f: Dom => Dom): Dom

Transform this DOM node by applying a function

Transform this DOM node by applying a function

Attributes

Inherited methods

def modify(element: Element): Element

Attributes

Inherited from:
Modifier

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product

Inherited and Abstract methods

def canEqual(that: Any): Boolean

Attributes

Inherited from:
Equals

Attributes

Inherited from:
Product
def productElement(n: Int): Any

Attributes

Inherited from:
Product