diff options
author | Krzysztof Jurewicz <[email protected]> | 2016-03-31 17:23:50 +0200 |
---|---|---|
committer | Krzysztof Jurewicz <[email protected]> | 2016-04-03 17:17:38 +0200 |
commit | 6c4a17ee75a4bef75863b2a65842fa55f1ab43aa (patch) | |
tree | 982db630419ba40751af136e111cdb0458855564 /plugins/erlydtl.mk | |
parent | 1fee577a15f5dbcc391b8f555458dad68f24afde (diff) | |
download | erlang.mk-6c4a17ee75a4bef75863b2a65842fa55f1ab43aa.tar.gz erlang.mk-6c4a17ee75a4bef75863b2a65842fa55f1ab43aa.tar.bz2 erlang.mk-6c4a17ee75a4bef75863b2a65842fa55f1ab43aa.zip |
Add possibility to specify custom ErlyDTL options
Diffstat (limited to 'plugins/erlydtl.mk')
-rw-r--r-- | plugins/erlydtl.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/erlydtl.mk b/plugins/erlydtl.mk index 5fde292..776a836 100644 --- a/plugins/erlydtl.mk +++ b/plugins/erlydtl.mk @@ -6,6 +6,7 @@ DTL_FULL_PATH ?= DTL_PATH ?= templates/ DTL_SUFFIX ?= _dtl +DTL_OPTS ?= # Verbosity. @@ -38,7 +39,7 @@ define erlydtl_compile.erl re:replace(F2, "/", "_", [{return, list}, global]) end, Module = list_to_atom(string:to_lower(Module0) ++ "$(DTL_SUFFIX)"), - case erlydtl:compile(F, Module, [{out_dir, "ebin/"}, return_errors, {doc_root, "templates"}]) of + case erlydtl:compile(F, Module, [$(DTL_OPTS)] ++ [{out_dir, "ebin/"}, return_errors, {doc_root, "templates"}]) of ok -> ok; {ok, _} -> ok end |