tsloughter / rebar3_erlydtl_plugin

Rebar3 Erlydtl Plugin
Other
11 stars 33 forks source link

Make multiple doc_root case actually working #16

Closed ssmyczynski closed 8 years ago

ssmyczynski commented 8 years ago

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.

This patch solves that problem.