mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Added support for custom_tags_dir compile option to rebar_erlydtl_compiler
This commit is contained in:
parent
d32bd6d4a1
commit
73ee6e442b
1 changed files with 3 additions and 1 deletions
|
@ -101,7 +101,8 @@ option(Opt, DtlOpts) ->
|
|||
default(doc_root) -> "templates";
|
||||
default(out_dir) -> "ebin";
|
||||
default(source_ext) -> ".dtl";
|
||||
default(module_ext) -> "_dtl".
|
||||
default(module_ext) -> "_dtl";
|
||||
default(custom_tags_dir) -> "".
|
||||
|
||||
compile_dtl(Source, Target, Config) ->
|
||||
case code:which(erlydtl) of
|
||||
|
@ -130,6 +131,7 @@ do_compile(Source, Target, Config) ->
|
|||
%% using defaults if necessary
|
||||
Opts = [{out_dir, option(out_dir, DtlOpts)},
|
||||
{doc_root, option(doc_root, DtlOpts)},
|
||||
{custom_tags_dir, option(custom_tags_dir, DtlOpts)},
|
||||
report, return],
|
||||
case erlydtl:compile(Source,
|
||||
module_name(Target),
|
||||
|
|
Loading…
Reference in a new issue