scalatags
package scalatags
ScalaTags is a small XML/HTML construction library for Scala. See the Github page for an introduction and documentation.
- Alphabetic
- By Inheritance
- scalatags
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
Type Members
- trait Companion[V] extends (String) => V
- trait DataConverters extends AnyRef
Trait containing the contents of the DataConverters module, so it can be mixed in to other objects as needed.
- trait LowPriorityImplicits extends AnyRef
- trait VirtualDom[Output <: FragT, FragT] extends Bundle[Builder[Output, FragT], Output, FragT] with Aliases[Builder[Output, FragT], Output, FragT]
A Scalatags module that can be configured to construct arbitrary virtual DOM fragments of uniform type
A Scalatags module that can be configured to construct arbitrary virtual DOM fragments of uniform type
Simply instantiate it with
stringToFrag
andrawToFrag
factory to constructFrag
, and amakeBuilder
factory to constructTag
s, and you can then use it to instantiate any sort of virtual DOM of uniform type: scala.xml trees, Preact/React VDOM nodes in the browser, etc.
Value Members
- object DataConverters extends DataConverters
Module containing convenient ways of constructing CSS data types
- object Escaping
Utility methods related to validating and escaping XML; used internally but potentially useful outside of Scalatags.
- object JsDom extends Bundle[Element, Element, Node] with Aliases[Element, Element, Node]
A Scalatags module that generates
dom.Element
s when the tags are rendered.A Scalatags module that generates
dom.Element
s when the tags are rendered. This provides some additional flexibility over the Text backend, as you can bind structured objects to the attributes of yourdom.Element
without serializing them first into strings. - object Text extends Bundle[Builder, String, String] with Aliases[Builder, String, String]
A Scalatags module that works with a text back-end, i.e.
A Scalatags module that works with a text back-end, i.e. it creates HTML
String
s. - implicit object attrOrdering extends Ordering[Attr]
- implicit object styleOrdering extends Ordering[Style]