View Source Hologram.Template (hologram v0.2.0)
Summary
Functions
@spec dom_ast(String.t()) :: Hologram.Compiler.AST.t()
Builds DOM AST from the given template markup.
Examples
iex> dom_ast("<div>content</div>")
[{:{}, [line: 1], [:element, "div", [], [{:text, "content"}]]}]