arizona_html (arizona v0.4.0)

View Source

HTML render-target backend.

Emits the byte sequences that make up the s statics for HTML output: element tags, attributes, and the comment markers that delimit dynamic text slots. Extracted verbatim from the parse transform -- output is byte-for-byte identical to the previous inlined emission.

Summary

Functions

attr(Name, Value)

-spec attr(binary(), binary()) -> binary().

attr_bool/2

-spec attr_bool(binary(), boolean()) -> binary().

attr_command(Name, Cmd)

-spec attr_command(binary(), term()) -> binary().

attr_dyn_name(Name)

-spec attr_dyn_name(binary()) -> binary().

attr_names()

-spec attr_names() -> case_insensitive.

az_attr(Az)

-spec az_attr(binary()) -> binary().

boolean_attrs()

children_sep()

-spec children_sep() -> binary().

content_context(Tag, Parent)

content_type()

each_items(Items)

-spec each_items([iodata()]) -> iodata().

element_close(TagName)

-spec element_close(binary()) -> binary().

element_open(TagName)

-spec element_open(binary()) -> binary().

element_open_end()

-spec element_open_end() -> binary().

element_void_close()

-spec element_void_close() -> binary().

escape(Bin)

-spec escape(binary()) -> binary().

implied_attrs(Tag, Names)

-spec implied_attrs(arizona_renderer:tag(), [binary()]) -> [{binary(), binary()}].

is_void(Tag)

-spec is_void(arizona_renderer:tag()) -> boolean().

keyed_item_ops()

name/1

-spec name(arizona_renderer:tag()) -> binary().

raw_text(Tag, Before, After, Value)

-spec raw_text(atom(), binary(), binary(), term()) -> term().

raw_text_kind(Tag, Context)

render_attr/2

-spec render_attr(binary(), term()) -> binary().

scope_static(Fp, Prefix, S0)

-spec scope_static(binary(), binary(), binary()) -> binary().

single_root_document()

supports_list_patch()

supports_local()

supports_nodiff_keep()

target()

text_az/2

-spec text_az(binary(), non_neg_integer()) -> binary().

text_child(Text)

-spec text_child(binary()) -> binary().

text_slot_close()

-spec text_slot_close() -> binary().

text_slot_open(Az)

-spec text_slot_open(binary()) -> binary().

wire_attr(Name, Value)

-spec wire_attr(binary(), term()) -> binary().

wire_escape(Bin)

-spec wire_escape(binary()) -> binary().