I am trying to use the mustache erlang lib with the separate template and view. I am using the rebar3 release structure.
I follow the example in the docs, if I create both the simple.erl
and simple.mustache
. However, when I perform rebar3 compile
, my final ebin directory only includes the simple.beam
.
How can I make sure the compile/release process bundles the simple.mustache
file?
Here is the layout of my apps:
Here is my rebar.config:
{erl_opts, [debug_info]}.
{deps, [
{cowboy, {git, "git://github.com/ninenines/cowboy.git", {tag, "1.0.1"}}},
{mustache, {git, "[email protected]:mojombo/mustache.erl.git", {tag, "v0.1.1"}}}
]}.
{relx, [{release, { kitty, "0.1.0" },
[kitty,
kitty_api,
sasl]},
{sys_config, "./config/sys.config"},
{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}]
}.
{profiles, [{prod, [{relx, [{dev_mode, false},
{include_erts, true}]}]
}]
}.
Here is my kitty_api_app.src
, which contains the simple.mustache
in it's src
dir:
{application, kitty_api,
[{description, "Kitty HTTP API"},
{vsn, "0.1.0"},
{registered, []},
{mod, { kitty_api_app, []}},
{applications,
[kernel,
stdlib,
kitty,
cowboy
]},
{env,[]},
{modules, []},
{maintainers, []},
{licenses, []},
{links, []}
]}.