summaryrefslogtreecommitdiff
path: root/inttest
diff options
context:
space:
mode:
authorSerge Aleynikov <saleyn@gmail.com>2012-10-21 06:13:35 +0400
committerSerge Aleynikov <saleyn@gmail.com>2012-10-22 08:39:44 +0400
commit38902e9a5247f46a182e72d78d6ad5daf975f2a4 (patch)
tree0197f5d35c1262800cb533f3ef5e30b16e09f6fa /inttest
parentd896fbffa72fe78c2b8317f1a0a1e3a058be6384 (diff)
Specify multiple locations of DTL template files
Added a backward compartible feature to specify `erlydtl_opts' options for the DTL template compiler to allow inclusion of templates in different directories with different compilation settings for each. E.g.: {erlydtl_opts, [ [{doc_root, "src/view"}, {module_ext, "_dtl_vw"}] , [{doc_root, "src"}, {module_ext, ""}, {recursive, false}] , {out_dir, "ebin"} , {compiler_options, [verbose, debug_info]} ]}. The definition above is identical to this (the last two options are duplicated in each list): {erlydtl_opts, [ [{doc_root, "src/view"} ,{module_ext, "_dtl_vw"} ,{out_dir, "ebin"} ,{compiler_options, [verbose, debug_info]}] , [{doc_root, "src"} ,{module_ext, ""} ,{out_dir, "ebin"} ,{compiler_options, [verbose, debug_info]} ,{recursive, false}] ]}. In this case "src/view" and "src" directories containing template files will be compiled. A new `recursive' option tells rebar_erlydtl_compiler to search files recursively from a given doc_root. In the example above the "src" directory won't be scanned recursively, and the target template name for target beam modules won't have "_dtl_vw" suffix.
Diffstat (limited to 'inttest')
0 files changed, 0 insertions, 0 deletions