Using erlydtl_opts configuration with multiple doc_roots as in example mentioned in the docs:
The following example will compile the following templates:
"src/_.dtl" files into "ebin/_dtl.beam" and
"priv/templates/.html" into "ebin/_.beam". Note that any tuple option
(such as 'out_dir') in the outer list is added to each inner list:
{erlydtl_opts, [
{out_dir, "ebin"},
{recursive, false},
[
{doc_root, "src"}, {module_ext, "_dtl"}
],
[
{doc_root, "priv/templates"}, {module_ext, ""}, {source_ext, ".html"}
]
]}.
results in uncaught error: badarg in lists:ukeymerge called at line 197 of rebar3_erlydtl_plugin.erl.
Using erlydtl_opts configuration with multiple doc_roots as in example mentioned in the docs:
results in uncaught error: badarg in lists:ukeymerge called at line 197 of rebar3_erlydtl_plugin.erl.
This patch solves that problem.