summaryrefslogtreecommitdiff
path: root/src/rebar_erlydtl_compiler.erl
Commit message (Collapse)AuthorAgeFilesLines
* rebar_erlydtl_compiler: fix incorrect lists:keysort/2 callTuncer Ayaz2012-11-111-1/+1
|
* Merge pull request #328 from saleyn/depcheckDave Smith2012-11-101-2/+2
|\ | | | | Fix erlydtl dependency check
| * Fix erlydtl dependency checkSerge Aleynikov2012-10-251-2/+2
| | | | | | | | | | | | | | | | When a DTL template includes other template files, those files don't need to be compiled separately, and therefore can be given an extension different from `source_ext` (such as `.dtli`) to avoid being compiled. This fix allows rebar to find included dependencies with names `*.dtl*` rather than `*.dtl` and properly determine if a template file needs to be recompiled.
* | Made more readable printout of the erlydtl compiler messageSerge Aleynikov2012-10-221-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The printed message is made more terse. Example before applying patch: ERROR: Compiling template src/view/test.dtl failed: {error,{"src/view/test.dtl", [{{4,7}, erlydtl_parser, ["syntax error before: ",["\"\\\"HELLO_WORLD\\\"\""]]}]}} Example after applying patch: ERROR: Compiling template "src/cmp_html_error_template.dtl" failed: (line:3, col:12): ["syntax error before: ",["trans"]]
* | Specify multiple locations of DTL template filesSerge Aleynikov2012-10-221-24/+73
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Re-use rebar_utils:ebin_dir()Tuncer Ayaz2012-08-061-1/+1
|
* Fix R13B03 build (Reported-by: Sergey Nartimov)Tuncer Ayaz2012-07-281-2/+2
|
* Remove ?FAIL in favor of ?ABORTDave Smith2012-06-081-2/+2
|
* Fix whitespace errorsTuncer Ayaz2012-03-181-8/+8
|
* Fix badarg crashes on missing dependency errorsLoïc Hoguin2012-03-181-2/+2
|
* Fix compiling DTL templates with latest erlydtlPhil Toland2012-02-161-6/+10
| | | | | | The latest version of erlydtl requires that custom tag modules be in the path when templates are compiled. Without this change rebar silently exits when using the custom_tags_modules option.
* Fix whitespace errorsTuncer Ayaz2012-01-171-1/+1
|
* Use ?ERROR where appropriateTuncer Ayaz2012-01-171-3/+3
|
* Clean up codeTuncer Ayaz2011-02-061-9/+11
|
* Clean up emacs file local variablesTuncer Ayaz2011-01-311-1/+1
|
* Fix grep invocationsTuncer Ayaz2011-01-131-5/+10
|
* Apply Tidier suggestionsTuncer Ayaz2011-01-131-8/+7
|
* Fix file existence checksTuncer Ayaz2011-01-131-1/+1
|
* Unify executable invocationJuhani Rankimies2011-01-061-6/+10
| | | | | Add flags to rebar_utils:sh to control output and error handling. Replace calls to os:cmd with calls to rebar_utils:sh.
* Fix typo in rebar_erlydtl_compilerAnthony Ramine2010-12-161-1/+1
|
* Tidier improvementsKostis Sagonas2010-10-261-13/+9
|
* Added support for custom_tags_dir compile option to rebar_erlydtl_compilerAlex Songe2010-01-161-1/+3
|
* rework elrydtl_compiler to do dependency checking correctly in refactored rebarBryan Fink2010-01-041-40/+55
|
* Another round of refactoring to yield better flexiblity in the base_compiler ↵Dave Smith2010-01-031-4/+5
| | | | system
* Refactor of compilation logic to enable support for package modules and ↵Dave Smith2010-01-021-12/+8
| | | | provide better modularity/reusability for other systems
* Added vi modeline/emacs local variables to file headersTuncer Ayaz2009-12-311-0/+2
|
* rebar can now compile ErlyDTL files (if erlydtl is installed)Bryan Fink2009-12-221-0/+167
defaults to compiling from templates/*.dtl to ebin/*_dtl.beam see top of rebar_erlydtl_compiler for configuration options