LiveLift.Client.Compiler (live_lift v0.1.0-rc.1)

Copy Markdown View Source

Compiles LiveLift's deliberately small pure expression subset to JavaScript.

Unsupported Elixir syntax raises instead of silently changing semantics.

Summary

Functions

Returns the registry and a source map pointing each view entry to its Elixir template.

Functions

compile_action(name, arg, body)

@spec compile_action(atom(), atom(), Macro.t()) :: String.t()

compile_module(module)

@spec compile_module(module()) :: String.t()

compile_registry(modules)

@spec compile_registry([module()]) :: String.t()

compile_registry_with_map(modules, output_name)

Returns the registry and a source map pointing each view entry to its Elixir template.