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

config_exs()

@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.

env_exs()

@spec env_exs() :: String.t()

Renders a minimal per-environment stub for config/dev.exs, test.exs, prod.exs, and runtime.exs.