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/webassembly.ex
defmodule WebAssembly do
defmacro __using__(_opts) do
quote do
import WebAssembly.DSL
use WebAssembly.HTML
end
end
end