elixir_script v0.16.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

Macros

a(attrs \\ [])
a(attrs, list)

Defines a macro for the html element, a

abbr(attrs \\ [])
abbr(attrs, list)

Defines a macro for the html element, abbr

address(attrs \\ [])
address(attrs, list)

Defines a macro for the html element, address

area(attrs \\ [])
area(attrs, list)

Defines a macro for the html element, area

article(attrs \\ [])
article(attrs, list)

Defines a macro for the html element, article

aside(attrs \\ [])
aside(attrs, list)

Defines a macro for the html element, aside

audio(attrs \\ [])
audio(attrs, list)

Defines a macro for the html element, audio

b(attrs \\ [])
b(attrs, list)

Defines a macro for the html element, b

base(attrs \\ [])
base(attrs, list)

Defines a macro for the html element, base

bdi(attrs \\ [])
bdi(attrs, list)

Defines a macro for the html element, bdi

bdo(attrs \\ [])
bdo(attrs, list)

Defines a macro for the html element, bdo

blockquote(attrs \\ [])
blockquote(attrs, list)

Defines a macro for the html element, blockquote

body(attrs \\ [])
body(attrs, list)

Defines a macro for the html element, body

br(attrs \\ [])
br(attrs, list)

Defines a macro for the html element, br

button(attrs \\ [])
button(attrs, list)

Defines a macro for the html element, button

canvas(attrs \\ [])
canvas(attrs, list)

Defines a macro for the html element, canvas

caption(attrs \\ [])
caption(attrs, list)

Defines a macro for the html element, caption

cite(attrs \\ [])
cite(attrs, list)

Defines a macro for the html element, cite

code(attrs \\ [])
code(attrs, list)

Defines a macro for the html element, code

col(attrs \\ [])
col(attrs, list)

Defines a macro for the html element, col

colgroup(attrs \\ [])
colgroup(attrs, list)

Defines a macro for the html element, colgroup

command(attrs \\ [])
command(attrs, list)

Defines a macro for the html element, command

datalist(attrs \\ [])
datalist(attrs, list)

Defines a macro for the html element, datalist

dd(attrs \\ [])
dd(attrs, list)

Defines a macro for the html element, dd

del(attrs \\ [])
del(attrs, list)

Defines a macro for the html element, del

details(attrs \\ [])
details(attrs, list)

Defines a macro for the html element, details

dfn(attrs \\ [])
dfn(attrs, list)

Defines a macro for the html element, dfn

dialog(attrs \\ [])
dialog(attrs, list)

Defines a macro for the html element, dialog

div(attrs \\ [])
div(attrs, list)

Defines a macro for the html element, div

dl(attrs \\ [])
dl(attrs, list)

Defines a macro for the html element, dl

dt(attrs \\ [])
dt(attrs, list)

Defines a macro for the html element, dt

em(attrs \\ [])
em(attrs, list)

Defines a macro for the html element, em

embed(attrs \\ [])
embed(attrs, list)

Defines a macro for the html element, embed

fieldset(attrs \\ [])
fieldset(attrs, list)

Defines a macro for the html element, fieldset

figcaption(attrs \\ [])
figcaption(attrs, list)

Defines a macro for the html element, figcaption

figure(attrs \\ [])
figure(attrs, list)

Defines a macro for the html element, figure

footer(attrs \\ [])
footer(attrs, list)

Defines a macro for the html element, footer

form(attrs \\ [])
form(attrs, list)

Defines a macro for the html element, form

h1(attrs \\ [])
h1(attrs, list)

Defines a macro for the html element, h1

head(attrs \\ [])
head(attrs, list)

Defines a macro for the html element, head

header(attrs \\ [])
header(attrs, list)

Defines a macro for the html element, header

hgroup(attrs \\ [])
hgroup(attrs, list)

Defines a macro for the html element, hgroup

hr(attrs \\ [])
hr(attrs, list)

Defines a macro for the html element, hr

html(attrs \\ [])
html(attrs, list)

Defines a macro for the html element, html

i(attrs \\ [])
i(attrs, list)

Defines a macro for the html element, i

iframe(attrs \\ [])
iframe(attrs, list)

Defines a macro for the html element, iframe

img(attrs \\ [])
img(attrs, list)

Defines a macro for the html element, img

input(attrs \\ [])
input(attrs, list)

Defines a macro for the html element, input

ins(attrs \\ [])
ins(attrs, list)

Defines a macro for the html element, ins

kbd(attrs \\ [])
kbd(attrs, list)

Defines a macro for the html element, kbd

keygen(attrs \\ [])
keygen(attrs, list)

Defines a macro for the html element, keygen

label(attrs \\ [])
label(attrs, list)

Defines a macro for the html element, label

legend(attrs \\ [])
legend(attrs, list)

Defines a macro for the html element, legend

li(attrs \\ [])
li(attrs, list)

Defines a macro for the html element, li

link(attrs \\ [])
link(attrs, list)

Defines a macro for the html element, link

main(attrs \\ [])
main(attrs, list)

Defines a macro for the html element, main

map(attrs \\ [])
map(attrs, list)

Defines a macro for the html element, map

mark(attrs \\ [])
mark(attrs, list)

Defines a macro for the html element, mark

meta(attrs \\ [])
meta(attrs, list)

Defines a macro for the html element, meta

meter(attrs \\ [])
meter(attrs, list)

Defines a macro for the html element, meter

noscript(attrs \\ [])
noscript(attrs, list)

Defines a macro for the html element, noscript

object(attrs \\ [])
object(attrs, list)

Defines a macro for the html element, object

ol(attrs \\ [])
ol(attrs, list)

Defines a macro for the html element, ol

optgroup(attrs \\ [])
optgroup(attrs, list)

Defines a macro for the html element, optgroup

option(attrs \\ [])
option(attrs, list)

Defines a macro for the html element, option

output(attrs \\ [])
output(attrs, list)

Defines a macro for the html element, output

p(attrs \\ [])
p(attrs, list)

Defines a macro for the html element, p

param(attrs \\ [])
param(attrs, list)

Defines a macro for the html element, param

pre(attrs \\ [])
pre(attrs, list)

Defines a macro for the html element, pre

progress(attrs \\ [])
progress(attrs, list)

Defines a macro for the html element, progress

q(attrs \\ [])
q(attrs, list)

Defines a macro for the html element, q

rp(attrs \\ [])
rp(attrs, list)

Defines a macro for the html element, rp

rt(attrs \\ [])
rt(attrs, list)

Defines a macro for the html element, rt

ruby(attrs \\ [])
ruby(attrs, list)

Defines a macro for the html element, ruby

s(attrs \\ [])
s(attrs, list)

Defines a macro for the html element, s

samp(attrs \\ [])
samp(attrs, list)

Defines a macro for the html element, samp

script(attrs \\ [])
script(attrs, list)

Defines a macro for the html element, script

section(attrs \\ [])
section(attrs, list)

Defines a macro for the html element, section

select(attrs \\ [])
select(attrs, list)

Defines a macro for the html element, select

small(attrs \\ [])
small(attrs, list)

Defines a macro for the html element, small

source(attrs \\ [])
source(attrs, list)

Defines a macro for the html element, source

span(attrs \\ [])
span(attrs, list)

Defines a macro for the html element, span

strong(attrs \\ [])
strong(attrs, list)

Defines a macro for the html element, strong

style(attrs \\ [])
style(attrs, list)

Defines a macro for the html element, style

sub(attrs \\ [])
sub(attrs, list)

Defines a macro for the html element, sub

summary(attrs \\ [])
summary(attrs, list)

Defines a macro for the html element, summary

sup(attrs \\ [])
sup(attrs, list)

Defines a macro for the html element, sup

table(attrs \\ [])
table(attrs, list)

Defines a macro for the html element, table

tbody(attrs \\ [])
tbody(attrs, list)

Defines a macro for the html element, tbody

td(attrs \\ [])
td(attrs, list)

Defines a macro for the html element, td

textarea(attrs \\ [])
textarea(attrs, list)

Defines a macro for the html element, textarea

tfoot(attrs \\ [])
tfoot(attrs, list)

Defines a macro for the html element, tfoot

th(attrs \\ [])
th(attrs, list)

Defines a macro for the html element, th

thead(attrs \\ [])
thead(attrs, list)

Defines a macro for the html element, thead

time(attrs \\ [])
time(attrs, list)

Defines a macro for the html element, time

title(attrs \\ [])
title(attrs, list)

Defines a macro for the html element, title

tr(attrs \\ [])
tr(attrs, list)

Defines a macro for the html element, tr

track(attrs \\ [])
track(attrs, list)

Defines a macro for the html element, track

u(attrs \\ [])
u(attrs, list)

Defines a macro for the html element, u

ul(attrs \\ [])
ul(attrs, list)

Defines a macro for the html element, ul

var(attrs \\ [])
var(attrs, list)

Defines a macro for the html element, var

video(attrs \\ [])
video(attrs, list)

Defines a macro for the html element, video

wbr(attrs \\ [])
wbr(attrs, list)

Defines a macro for the html element, wbr