We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52d6e03 commit cd094acCopy full SHA for cd094ac
README.md
@@ -8,21 +8,22 @@ WebAssembly
8
DSL for creating html structure straight with Elixir blocks:
9
10
```Elixir
11
-
12
use WebAssembly
13
builder do
14
html do
15
head do
16
- ctype = "text/html"
17
- meta http_equiv: "Content-Type", content: ctype
18
- title "foo"
+ meta http_equiv: "Content-Type", content: "text/html"
+ title "example"
19
end
20
body do
21
- div class: "mydiv", id: :myid do
+ div class: "container", id: :content do
22
ul do
23
- li 1
24
- if all_goes_well, do:
25
- li "second"
+ elements for index<-1..5, do:
+ pick li ["item ", index]
+ end
+ random = :random.uniform(10)
+ if random == 10 do
26
+ text "Lucky! You got 10"
27
28
29
text "that was nice"
0 commit comments