Svelixir. Inline. MixConfig
(svelixir v0.2.0)
Copy Markdown
Inline templates for a generated OTP project's config/ directory
(mix new creates none of these; mix phx.new already creates all 5).
Summary
Functions
Renders config/config.exs. The #{config_env()} interpolation is
escaped so it lands in the generated file as literal Elixir source,
evaluated by the generated project itself at compile/boot time -- not by
this template at generation time.
Renders a minimal per-environment stub for config/dev.exs, test.exs, prod.exs, and runtime.exs.
Functions
@spec config_exs() :: String.t()
Renders config/config.exs. The #{config_env()} interpolation is
escaped so it lands in the generated file as literal Elixir source,
evaluated by the generated project itself at compile/boot time -- not by
this template at generation time.
@spec env_exs() :: String.t()
Renders a minimal per-environment stub for config/dev.exs, test.exs, prod.exs, and runtime.exs.