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, intermediate and output data used in the elements assembly.
"""
@type tag :: atom
@type attributes :: [{atom, atom | number | String.t}]
@type content :: atom | number | String.t | assembled_elements
@type assembled_tag :: String.t
@type assembled_attributes :: [String.t]
@type assembled_void_elements :: [assembled_tag | assembled_attributes]
@type assembled_elements :: [assembled_tag | assembled_attributes |
content]
end