Mix.Raxol.AppTemplates (Raxol v2.9.2)

View Source

TEA module source templates for mix raxol.new.

Each function returns the source code for a generated app module.

Containers take their children as a list. A column or row whose block evaluates to a single element draws nothing, so single children are wrapped too.

Summary

Functions

The command that runs a generated app.

Functions

render(template, bindings)

@spec render(String.t(), map()) :: String.t()

run_command(map)

@spec run_command(map()) :: String.t()

The command that runs a generated app.

A standalone app runs through its start/0 rather than through code at the bottom of lib/<app>.ex: mix compile evaluates every file under lib/, so top-level code there would launch the app inside the compiler.