Packages

Generates escript projects. Elixir scripts have a module with a `main` function. This mix gen template acts as template for such scripts.

Current section

Files

Jump to
gen_template_escript template $PROJECT_NAME$ config config.exs
Raw

template/$PROJECT_NAME$/config/config.exs

use Mix.Config
# config(:<%= @project_name %>, key: :value)
#
# And access this configuration in your application as:
#
# Application.get_env(:<%= @project_name %>, :key)
#
# Or configure a 3rd-party app:
#
# config(:logger, level: :info)
#
# Example per-environment config:
#
# import_config("#{Mix.env}.exs")