View Source Hologram.Template.DOM (hologram v0.2.0)
Summary
Functions
Builds DOM AST from the given parsed tags.
Types
Functions
@spec build_ast([Hologram.Template.Parser.parsed_tag()]) :: Hologram.Compiler.AST.t()
Builds DOM AST from the given parsed tags.
Examples
iex> tags = [{:start_tag, {"div, []}}, {:text, "abc"}, {:end_tag, "div"}]
iex> build_ast(tags)
[{:{}, [line: 1], [:element, "div", [], [{:text, "abc"}]]}]