add div, section, span
This commit is contained in:
parent
e092c3db60
commit
24cfbe8727
|
@ -4,6 +4,15 @@ in {
|
||||||
p = child:
|
p = child:
|
||||||
html.tag "p" {} child;
|
html.tag "p" {} child;
|
||||||
|
|
||||||
|
div = child:
|
||||||
|
html.tag "div" {} child;
|
||||||
|
|
||||||
|
section = child:
|
||||||
|
html.tag "section" {} child;
|
||||||
|
|
||||||
|
span = child:
|
||||||
|
html.tag "span" {} child;
|
||||||
|
|
||||||
main = child:
|
main = child:
|
||||||
html.tag "main" {} child;
|
html.tag "main" {} child;
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,18 @@ in
|
||||||
expected = html.tag "p" {} "foobar";
|
expected = html.tag "p" {} "foobar";
|
||||||
actual = p "foobar";
|
actual = p "foobar";
|
||||||
})
|
})
|
||||||
|
(it "makes a div tag" {
|
||||||
|
expected = html.tag "div" {} "foobar";
|
||||||
|
actual = div "foobar";
|
||||||
|
})
|
||||||
|
(it "makes a section tag" {
|
||||||
|
expected = html.tag "section" {} "foobar";
|
||||||
|
actual = section "foobar";
|
||||||
|
})
|
||||||
|
(it "makes a span tag" {
|
||||||
|
expected = html.tag "span" {} "foobar";
|
||||||
|
actual = span "foobar";
|
||||||
|
})
|
||||||
(it "makes a main tag" {
|
(it "makes a main tag" {
|
||||||
expected = html.tag "main" {} ["yeet"];
|
expected = html.tag "main" {} ["yeet"];
|
||||||
actual = main ["yeet"];
|
actual = main ["yeet"];
|
||||||
|
|
Loading…
Reference in a new issue