Wraps up a HTML attribute in an untyped value with an associated type; the := operator takes Strings.
A key value pair representing the assignment of an attribute to a value.
Trait containing the contents of the Attrs module, so they can be mixed in to other objects if needed.
Represents a single CSS class.
Trait containing the contents of the DataConverters module, so it can be mixed in to other objects as needed.
Provides extension methods on strings to fit them into Scalatag fragments.
Things that a modifier is allowed to do to a node.
Things that a modifier is allowed to do to a node.
It can only set attributes, or append children.
Represents a value that can be nested within a Node.
A general interface for all XML types which can appear in a ScalaTags fragment.
A scalatags.Node which contains a String which will not be escaped.
Allows you to modify a HtmlTag by adding a Seq containing other nest-able objects to its list of children.
A which contains a String.
A Style that only has a fixed set of possible values, provided by its members.
A key value pair representing the assignment of a style to a value.
Trait that contains the contents of the Styles
object, so they can
be mixed in to other objects if needed.
Trait that contains the contents of the Tags
object, so they can be mixed
in to other objects if needed.
Wraps up a HTML attribute in a statically-typed value with an associated type; overloads the := operator to also accept values of that type to convert to strings, allowing more concise and pseudo-typesafe use of that attribute.
A single HTML tag.
A single HTML tag.
The name of the tag
A backwards list of child-nodes; kept this way for fast updates, and reversed before being rendered.
A sorted map of attributes
Whether or not the tag can be self-closing
A Style that takes any value of type T as a parameter; overloads the := operator to also accept values of that type to convert to strings, allowing more concise and pseudo-typesafe use of that style.
A Style which does not have a particular type, and takes strings as its values
Allows you to modify a HtmlTag by adding an Array containing other nest-able objects to its list of children.
Module containing static bindings for common HTML attributes.
Module containing convenient ways of constructing CSS data types
Contains the trait and case class definitions for the most commonly used CSS data types.
Contains the trait and case class definitions for the most commonly used CSS data types. Not really necessary if you are declaring your CSS inline with your fragments, but useful if you want to pass CSS values around and need a type to put in a parameter list or collection.
Utility methods related to validating and escaping XML; used internally but potentially useful outside of Scalatags.
Lets you put numbers into a scalatags tree, as a no-op.
Allows you to modify a HtmlTag by adding an Option containing other nest-able objects to its list of children.
Module that contains bindings for commonly-used CSS styles.
Contains CSS styles which are used less frequently.
Contains CSS styles which are used less frequently. These are not imported by default to avoid namespace pollution.
Contains CSS styles which are only used for SVG.
Contains CSS styles which are only used for SVG. These are not imported by default to avoid namespace pollution.
Contains Tags which are only used for SVG.
Contains Tags which are only used for SVG. These are not imported by default to avoid namespace pollution.
Module containing static definitions for common HTML5 tags.
Contains HTML tags which are used less frequently.
Contains HTML tags which are used less frequently. These are generally imported individually as needed.
Lets you put Unit into a scalatags tree, as a no-op.
Convenience object to help import all Tags, Attrs, Styles and
Datatypes into the global namespace via import scalatags.all._
Mark the given string as "raw", meaning it will not get escaped when the Scalatags fragment is serialized.
Mark the given string as "raw", meaning it will not get escaped when the Scalatags fragment is serialized. This makes it easy to open up XSS holes and other vulnerabilities, but is sometimes necessary and useful.
Convenience object to help import all Tags, and DataConverters, while
aliases Attrs as attr
and Styles as css
.
Convenience object to help import all Tags, and DataConverters, while
aliases Attrs as attr
and Styles as css
. Used via
import scalatags.short._
Allows you to modify a HtmlTag by adding a String to its list of children
ScalaTags is a small XML/HTML construction library for Scala. See the Github page for an introduction and documentation.