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
Current section
Files
lib/types.ex
defmodule WebAssembly.Types do
@moduledoc """
Types of input and output data used in the tag assembly.
"""
@type tagname :: atom
@type attrs :: [{atom, atom | number | 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