Permalink
Browse files

Add compile_dir functions to erlydtl module

  • Loading branch information...
1 parent 3306858 commit 6b746f2beb46f64c869f0c7d1ccbbb7787dbcf49 @evanmiller evanmiller committed Jan 16, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/erlydtl.erl
View
@@ -37,6 +37,7 @@
%% API
-export([compile/2, compile/3]).
+-export([compile_dir/2, compile_dir/3]).
%% @spec compile( FileOrBinary, Module::atom() ) -> ok | {error, Reason}
compile(FileOrBinary, Module) ->
@@ -45,3 +46,11 @@ compile(FileOrBinary, Module) ->
%% @spec compile( FileOrBinary, Module::atom(), Options ) -> ok | {error, Reason}
compile(FileOrBinary, Module, Options) ->
erlydtl_compiler:compile(FileOrBinary, Module, Options).
+
+%% @spec compile_dir( DirectoryPath::string(), Module::atom() ) -> ok | {error, Reason}
+compile_dir(DirectoryPath, Module) ->
+ erlydtl_compiler:compile_dir(DirectoryPath, Module).
+
+%% @spec compile_dir( DirectoryPath::string(), Module::atom(), Options ) -> ok | {error, Reason}
+compile_dir(DirectoryPath, Module, Options) ->
+ erlydtl_compiler:compile_dir(DirectoryPath, Module, Options).

0 comments on commit 6b746f2

Please sign in to comment.