Packages

WebAssembly is a web DSL for Elixir. You create html structure straight using do blocks. Means, you can intermix html-building blocks with full Elixir syntax. DSL output is an iolist, which you can flatten to string, but better use is to just feed it to the socket (via Plug & Cowboy). WebAssem...

Current section

Files

Jump to
webassembly lib examples bad.ex
Raw

lib/examples/bad.ex

defmodule WebAssembly.BadExamples do
# these should make dialyzer crying
@moduledoc false
#alias WebAssembly.Types, as: T
use WebAssembly
def bad1 do
builder do
span 1
span :not_text
end
end
end