Browse Source

bugfixes, server seems to work but not much tested yet

git-svn-id: http://erlydtl.googlecode.com/svn/trunk@15 a5195066-8e3e-0410-a82a-05b01b1b9875
rsaccon 17 years ago
parent
commit
f8f05c0367
3 changed files with 5 additions and 5 deletions
  1. 1 1
      src/demo/erlydtl_demo.erl
  2. 2 2
      src/erlydtl/erlydtl_app.erl
  3. 2 2
      src/erlydtl/erlydtl_sup.erl

+ 1 - 1
src/demo/erlydtl_demo.erl

@@ -51,7 +51,7 @@ compile_templates() ->
         true,
         true,
         fun(Path, _Acc) ->
         fun(Path, _Acc) ->
             Name = filename:rootname(filename:basename(Path)),
             Name = filename:rootname(filename:basename(Path)),
-            erlydtl:compile(Path, Name, DocRoot)
+            erlydtl_server:compile(Path, Name, DocRoot)
         end,
         end,
         []).
         []).
  
  

+ 2 - 2
src/erlydtl/erlydtl_app.erl

@@ -52,8 +52,8 @@
 %% top supervisor of the tree.
 %% top supervisor of the tree.
 %% @end 
 %% @end 
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
-start(_Type, StartArgs) ->
-    erlydtl_sup:start_link(StartArgs).
+start(_Type, _StartArgs) ->
+    erlydtl_sup:start_link().
 
 
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 %% @spec stop(State) -> void()
 %% @spec stop(State) -> void()

+ 2 - 2
src/erlydtl/erlydtl_sup.erl

@@ -68,8 +68,8 @@ start_link() ->
 %% @end 
 %% @end 
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 init([]) ->
 init([]) ->
-    AChild = {erlydtl,{erlydtl,start_link,[]},
-              permanent,2000,worker,[erlydtl]},
+    AChild = {erlydtl_server,{erlydtl_server,start_link,[]},
+              permanent,2000,worker,[erlydtl_server]},
     {ok,{{one_for_all,0,1}, [AChild]}}.
     {ok,{{one_for_all,0,1}, [AChild]}}.
 
 
 %%====================================================================
 %%====================================================================