diff options
author | Evgeny M <[email protected]> | 2014-11-16 22:53:52 +0300 |
---|---|---|
committer | evgeny <[email protected]> | 2015-01-03 14:56:02 +0300 |
commit | ba41fb80efcd2083d1cc98802a118d4db2c1eaf8 (patch) | |
tree | 00176caefcecdb8ad38c8618a3e1b311f31e07d2 /README.md | |
parent | df5a4779bc3c5a5bffee4186a8f69408262de5d2 (diff) | |
download | erlang.mk-ba41fb80efcd2083d1cc98802a118d4db2c1eaf8.tar.gz erlang.mk-ba41fb80efcd2083d1cc98802a118d4db2c1eaf8.tar.bz2 erlang.mk-ba41fb80efcd2083d1cc98802a118d4db2c1eaf8.zip |
Make it possible to create erlydtl beam files with full path in the name
if DTL_FULL_PATH=1
/templates/a/b/c.dtl -> a_b_c_dtl.beam
otherwise (as it was before)
-> c_dtl.beam
add return_errors flag to erlydtl:compile to return {error, Errors} instead of error;
add {doc_root, "templates"} flag to allow extend and include templates from parent directories (by default erlydtl looks for parent template in the directory of the current template);
make compilation stop if erlydtl:compile returns an error
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -351,7 +351,14 @@ ErlyDTL plugin This plugin is available by default. It adds automatic compilation of ErlyDTL templates found in `templates/*.dtl` -or any subdirectory. +or any subdirectory. + +By default it ignores names of subdirectories and compiles +`a/b/templatename.dtl` into `templatename_dtl.beam`. To include +subdirectories names in the compiled module name add +`DTL_FULL_PATH=1` into your Makefile - `a/b/templatename.dtl` +will be compiled into `a_b_templatename_dtl.beam`. + Relx plugin ----------- |