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 types.ex
Raw

lib/types.ex

defmodule WebAssembly.Types do
@type tagname :: atom
@type attrs :: [{atom, String.t}]
@type content :: atom | number | String.t | out_tag | [String.t | out_tag]
@type out_tag :: [String.t | [String.t] | content]
@type out_tag_void :: [String.t | [String.t]]
end