diff options
author | Dave Smith <dizzyd@dizzyd.com> | 2010-01-29 22:02:47 -0700 |
---|---|---|
committer | Dave Smith <dizzyd@dizzyd.com> | 2010-01-29 22:02:47 -0700 |
commit | 7bcbe026d4b67f16a2e3e5c4f4b7835bc9766573 (patch) | |
tree | c989f4ff70945a0af555c9146f5132ed9a3f7874 /src | |
parent | 7cf7481a68374775bb460878041b97870ab35c37 (diff) | |
parent | 73ee6e442b3ce15e7c0911a59680284c1ca54041 (diff) |
Merging support from asonge for custom_tags_dir
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_erlydtl_compiler.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_erlydtl_compiler.erl b/src/rebar_erlydtl_compiler.erl index d635854..32c50a7 100644 --- a/src/rebar_erlydtl_compiler.erl +++ b/src/rebar_erlydtl_compiler.erl @@ -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), |