|
@@ -26,8 +26,12 @@ validate_erlydtl_opts(Cwd, Opts) ->
|
|
DocRoot1 = {doc_root, filename:join(Cwd, DocRootDir)},
|
|
DocRoot1 = {doc_root, filename:join(Cwd, DocRootDir)},
|
|
{_, OutDir1} = OutDir,
|
|
{_, OutDir1} = OutDir,
|
|
OutDir2 = {out_dir, filename:join(Cwd, OutDir1)},
|
|
OutDir2 = {out_dir, filename:join(Cwd, OutDir1)},
|
|
|
|
+ Auto_Escape = case application:get_env(mad, compile_dtl_escape, false) of
|
|
|
|
+ true -> {auto_escape, true};
|
|
|
|
+ _ -> {auto_escape, false}
|
|
|
|
+ end,
|
|
|
|
|
|
- [DocRoot1, OutDir2, CompilerOpts, SourceExt, ModuleExt|Opts5].
|
|
|
|
|
|
+ [DocRoot1, OutDir2, CompilerOpts, Auto_Escape, SourceExt, ModuleExt|Opts5].
|
|
|
|
|
|
module_name(File, Ext, NewExt) ->
|
|
module_name(File, Ext, NewExt) ->
|
|
list_to_atom(filename:basename(File, Ext) ++ NewExt).
|
|
list_to_atom(filename:basename(File, Ext) ++ NewExt).
|