From 6c4a17ee75a4bef75863b2a65842fa55f1ab43aa Mon Sep 17 00:00:00 2001 From: Krzysztof Jurewicz Date: Thu, 31 Mar 2016 17:23:50 +0200 Subject: Add possibility to specify custom ErlyDTL options --- plugins/erlydtl.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/erlydtl.mk') 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 -- cgit v1.2.3