View Source Hologram.Template (hologram v0.2.0)

Summary

Functions

Builds DOM AST from the given template markup.

Functions

dom_ast(markup)

@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"}]]}]

sigil_H(markup, modifiers)

(macro)