elixir_script v0.17.0 ElixirScript.Html
Defines macros for HTML elements to be used to build up a virtual dom tree. The virtual dom tree defined here can then be used with macros defined in the VDom module or with the View module
tree = Html.div [id: "hello"] do
Html.span do
"Hello"
end
end
rootNode = VDom.create(tree)
:document.getElementById("main").appendChild(rootNode)
newTree = Html.div [id: "world"]
patches = VDom.diff(tree, newTree)
rootNode = VDom.patch(rootNode, patches)
Instead of patching and diffing manually, the View
module can also be used
instead.
Summary
Macros
Defines a macro for the html element, a
Defines a macro for the html element, abbr
Defines a macro for the html element, address
Defines a macro for the html element, area
Defines a macro for the html element, article
Defines a macro for the html element, aside
Defines a macro for the html element, audio
Defines a macro for the html element, b
Defines a macro for the html element, base
Defines a macro for the html element, bdi
Defines a macro for the html element, bdo
Defines a macro for the html element, blockquote
Defines a macro for the html element, body
Defines a macro for the html element, br
Defines a macro for the html element, button
Defines a macro for the html element, canvas
Defines a macro for the html element, caption
Defines a macro for the html element, cite
Defines a macro for the html element, code
Defines a macro for the html element, col
Defines a macro for the html element, colgroup
Defines a macro for the html element, command
Defines a macro for the html element, datalist
Defines a macro for the html element, dd
Defines a macro for the html element, del
Defines a macro for the html element, details
Defines a macro for the html element, dfn
Defines a macro for the html element, dialog
Defines a macro for the html element, div
Defines a macro for the html element, dl
Defines a macro for the html element, dt
Defines a macro for the html element, em
Defines a macro for the html element, embed
Defines a macro for the html element, fieldset
Defines a macro for the html element, figcaption
Defines a macro for the html element, figure
Defines a macro for the html element, footer
Defines a macro for the html element, form
Defines a macro for the html element, h1
Defines a macro for the html element, head
Defines a macro for the html element, header
Defines a macro for the html element, hgroup
Defines a macro for the html element, hr
Defines a macro for the html element, html
Defines a macro for the html element, i
Defines a macro for the html element, iframe
Defines a macro for the html element, img
Defines a macro for the html element, input
Defines a macro for the html element, ins
Defines a macro for the html element, kbd
Defines a macro for the html element, keygen
Defines a macro for the html element, label
Defines a macro for the html element, legend
Defines a macro for the html element, li
Defines a macro for the html element, link
Defines a macro for the html element, main
Defines a macro for the html element, map
Defines a macro for the html element, mark
Defines a macro for the html element, menu
Defines a macro for the html element, menuitem
Defines a macro for the html element, meta
Defines a macro for the html element, meter
Defines a macro for the html element, nav
Defines a macro for the html element, noscript
Defines a macro for the html element, object
Defines a macro for the html element, ol
Defines a macro for the html element, optgroup
Defines a macro for the html element, option
Defines a macro for the html element, output
Defines a macro for the html element, p
Defines a macro for the html element, param
Defines a macro for the html element, pre
Defines a macro for the html element, progress
Defines a macro for the html element, q
Defines a macro for the html element, rp
Defines a macro for the html element, rt
Defines a macro for the html element, ruby
Defines a macro for the html element, s
Defines a macro for the html element, samp
Defines a macro for the html element, script
Defines a macro for the html element, section
Defines a macro for the html element, select
Defines a macro for the html element, small
Defines a macro for the html element, source
Defines a macro for the html element, span
Defines a macro for the html element, strong
Defines a macro for the html element, style
Defines a macro for the html element, sub
Defines a macro for the html element, summary
Defines a macro for the html element, sup
Defines a macro for the html element, table
Defines a macro for the html element, tbody
Defines a macro for the html element, td
Defines a macro for the html element, textarea
Defines a macro for the html element, tfoot
Defines a macro for the html element, th
Defines a macro for the html element, thead
Defines a macro for the html element, time
Defines a macro for the html element, title
Defines a macro for the html element, tr
Defines a macro for the html element, track
Defines a macro for the html element, u
Defines a macro for the html element, ul
Defines a macro for the html element, var
Defines a macro for the html element, video
Defines a macro for the html element, wbr