class Water
- Water
- Reference
- Object
Included Modules
Defined in:
water.crwater/kilts/embed.cr
water/tag.cr
water/tag/custom_tag.cr
water/tag/open_tag.cr
water/tag/self_close_tag.cr
water/version.cr
Constant Summary
-
VERSION =
"1.0.0"
Constructors
- .new(lines : Array(String) = [] of String, indents : Array(Int32) = [] of Int32, current_indent : Int32 = 0)
- .new(&)
Class Method Summary
Instance Method Summary
- #current_indent : Int32
- #current_indent=(current_indent : Int32)
- #indents : Array(Int32)
- #indents=(indents : Array(Int32))
- #lines : Array(String)
- #lines=(lines : Array(String))
Macro Summary
Instance methods inherited from module Water::Tag
doctype(attributes = "html")
doctype,
script(attributes, content)script(content) script, strip_content(content) strip_content, style(attributes, content)
style(content) style, text(content) text
Instance methods inherited from module Water::SelfCloseTag
area(attributes : String)area area, base(attributes : String)
base base, br(attributes : String)
br br, col(attributes : String)
col col, embed(attributes : String)
embed embed, hr(attributes : String)
hr hr, img(attributes : String)
img img, input(attributes : String)
input input, keygen(attributes : String)
keygen keygen, link(attributes : String)
link link, menuitem(attributes : String)
menuitem menuitem, meta(attributes : String)
meta meta, param(attributes : String)
param param, source(attributes : String)
source source, track(attributes : String)
track track, wbr(attributes : String)
wbr wbr
Instance methods inherited from module Water::OpenTag
a(attributes : String, &)a(&)
a(attributes : String, content)
a(content) a, abbr(attributes : String, &)
abbr(&)
abbr(attributes : String, content)
abbr(content) abbr, address(attributes : String, &)
address(&)
address(attributes : String, content)
address(content) address, article(attributes : String, &)
article(&)
article(attributes : String, content)
article(content) article, aside(attributes : String, &)
aside(&)
aside(attributes : String, content)
aside(content) aside, b(attributes : String, &)
b(&)
b(attributes : String, content)
b(content) b, bdi(attributes : String, &)
bdi(&)
bdi(attributes : String, content)
bdi(content) bdi, body(attributes : String, &)
body(&)
body(attributes : String, content)
body(content) body, button(attributes : String, &)
button(&)
button(attributes : String, content)
button(content) button, code(attributes : String, &)
code(&)
code(attributes : String, content)
code(content) code, dd(attributes : String, &)
dd(&)
dd(attributes : String, content)
dd(content) dd, details(attributes : String, &)
details(&)
details(attributes : String, content)
details(content) details, dialog(attributes : String, &)
dialog(&)
dialog(attributes : String, content)
dialog(content) dialog, div(attributes : String, &)
div(&)
div(attributes : String, content)
div(content) div, dl(attributes : String, &)
dl(&)
dl(attributes : String, content)
dl(content) dl, dt(attributes : String, &)
dt(&)
dt(attributes : String, content)
dt(content) dt, em(attributes : String, &)
em(&)
em(attributes : String, content)
em(content) em, fieldset(attributes : String, &)
fieldset(&)
fieldset(attributes : String, content)
fieldset(content) fieldset, figcaption(attributes : String, &)
figcaption(&)
figcaption(attributes : String, content)
figcaption(content) figcaption, figure(attributes : String, &)
figure(&)
figure(attributes : String, content)
figure(content) figure, footer(attributes : String, &)
footer(&)
footer(attributes : String, content)
footer(content) footer, form(attributes : String, &)
form(&)
form(attributes : String, content)
form(content) form, h1(attributes : String, &)
h1(&)
h1(attributes : String, content)
h1(content) h1, h2(attributes : String, &)
h2(&)
h2(attributes : String, content)
h2(content) h2, h3(attributes : String, &)
h3(&)
h3(attributes : String, content)
h3(content) h3, h4(attributes : String, &)
h4(&)
h4(attributes : String, content)
h4(content) h4, h5(attributes : String, &)
h5(&)
h5(attributes : String, content)
h5(content) h5, h6(attributes : String, &)
h6(&)
h6(attributes : String, content)
h6(content) h6, head(attributes : String, &)
head(&)
head(attributes : String, content)
head(content) head, header(attributes : String, &)
header(&)
header(attributes : String, content)
header(content) header, html(attributes : String, &)
html(&)
html(attributes : String, content)
html(content) html, i(attributes : String, &)
i(&)
i(attributes : String, content)
i(content) i, iframe(attributes : String, &)
iframe(&)
iframe(attributes : String, content)
iframe(content) iframe, label(attributes : String, &)
label(&)
label(attributes : String, content)
label(content) label, li(attributes : String, &)
li(&)
li(attributes : String, content)
li(content) li, main(attributes : String, &)
main(&)
main(attributes : String, content)
main(content) main, mark(attributes : String, &)
mark(&)
mark(attributes : String, content)
mark(content) mark, menuitem(attributes : String, &)
menuitem(&)
menuitem(attributes : String, content)
menuitem(content) menuitem, meter(attributes : String, &)
meter(&)
meter(attributes : String, content)
meter(content) meter, nav(attributes : String, &)
nav(&)
nav(attributes : String, content)
nav(content) nav, ol(attributes : String, &)
ol(&)
ol(attributes : String, content)
ol(content) ol, option(attributes : String, &)
option(&)
option(attributes : String, content)
option(content) option, para(attributes : String, &)
para(&)
para(attributes : String, content)
para(content) para, pre(attributes : String, &)
pre(&)
pre(attributes : String, content)
pre(content) pre, progress(attributes : String, &)
progress(&)
progress(attributes : String, content)
progress(content) progress, rp(attributes : String, &)
rp(&)
rp(attributes : String, content)
rp(content) rp, rt(attributes : String, &)
rt(&)
rt(attributes : String, content)
rt(content) rt, ruby(attributes : String, &)
ruby(&)
ruby(attributes : String, content)
ruby(content) ruby, s(attributes : String, &)
s(&)
s(attributes : String, content)
s(content) s, section(attributes : String, &)
section(&)
section(attributes : String, content)
section(content) section, select_tag(attributes : String, &)
select_tag(&)
select_tag(attributes : String, content)
select_tag(content) select_tag, small(attributes : String, &)
small(&)
small(attributes : String, content)
small(content) small, span(attributes : String, &)
span(&)
span(attributes : String, content)
span(content) span, strong(attributes : String, &)
strong(&)
strong(attributes : String, content)
strong(content) strong, summary(attributes : String, &)
summary(&)
summary(attributes : String, content)
summary(content) summary, table(attributes : String, &)
table(&)
table(attributes : String, content)
table(content) table, tbody(attributes : String, &)
tbody(&)
tbody(attributes : String, content)
tbody(content) tbody, td(attributes : String, &)
td(&)
td(attributes : String, content)
td(content) td, textarea(attributes : String, &)
textarea(&)
textarea(attributes : String, content)
textarea(content) textarea, th(attributes : String, &)
th(&)
th(attributes : String, content)
th(content) th, thead(attributes : String, &)
thead(&)
thead(attributes : String, content)
thead(content) thead, time(attributes : String, &)
time(&)
time(attributes : String, content)
time(content) time, title(attributes : String, &)
title(&)
title(attributes : String, content)
title(content) title, tr(attributes : String, &)
tr(&)
tr(attributes : String, content)
tr(content) tr, u(attributes : String, &)
u(&)
u(attributes : String, content)
u(content) u, ul(attributes : String, &)
ul(&)
ul(attributes : String, content)
ul(content) ul, video(attributes : String, &)
video(&)
video(attributes : String, content)
video(content) video, wbr(attributes : String, &)
wbr(&)
wbr(attributes : String, content)
wbr(content) wbr
Constructor Detail
def self.new(lines : Array(String) = [] of String, indents : Array(Int32) = [] of Int32, current_indent : Int32 = 0)
#