module

Haml::Runtime

Constants

BOOLEAN_ATTRIBUTES = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "defer", "disabled", "formnovalidate", "hidden", "inert", "ismap", "itemscope", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "selected"] of ::String

These are presence/absence attributes (including the commonly treated boolean-like hidden). Textual values remain possible, e.g. hidden's "until-found" state. data-* and aria-* are intentionally NOT in this list.

VOID_TAGS = ["area", "base", "br", "col", "embed", "hr", "img", "input", "link", "meta", "param", "source", "track", "wbr"] of ::String

Class methods

boolean_attribute?(name : String) : Bool
Source
valid_attribute_name?(name : String) : Bool
Source
void_tag?(name : String) : Bool
Source
write_preserved(io : IO, value : T) : Nil forall T
Source

Nested types