Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Only compile files with .html extension.

  • Loading branch information...
commit 22c58ffdfeee465ba838f2e4d557dbd61faaa662 1 parent 1b8e85f
@runejuhl authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/erlydtl_compiler.erl
View
2  src/erlydtl_compiler.erl
@@ -117,7 +117,7 @@ compile_dir(Dir, Module) ->
compile_dir(Dir, Module, Options) ->
Context = init_dtl_context_dir(Dir, Module, Options),
- Files = filelib:fold_files(Dir, ".*", true, fun(F1,Acc1) -> [F1 | Acc1] end, []),
+ Files = filelib:fold_files(Dir, ".+\.html", true, fun(F1,Acc1) -> [F1 | Acc1] end, []),
{ParserResults, ParserErrors} = lists:foldl(fun
(File, {ResultAcc, ErrorAcc}) ->
case filename:basename(File) of
Please sign in to comment.
Something went wrong with that request. Please try again.