Skip to content

Commit

Permalink
removed app views and made several optmizations and improvements as d…
Browse files Browse the repository at this point in the history
…escribed in CHANGELOG.txt
  • Loading branch information
yarivvv committed Feb 12, 2007
1 parent 7ca4779 commit 0b47a34
Show file tree
Hide file tree
Showing 6 changed files with 625 additions and 594 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.txt
Expand Up @@ -30,6 +30,17 @@ v0.4.2

- Updated the documentation.

- Removed support for app views and component views' render() function. Their functionality is now attained with containers.

- Added the {phased, Ewc, Fun(ExpandedEwc, Data)} response tuple to the app controller to support conditional containers.

- Refactored the compilation logic to a new file called 'erlyweb_compile.erl'.

- Added the get_cookie/2 function to erlyweb_util.

- Fixed the include paths support for files compiled with ErlyDB.


v0.4.1

- Added compiler debug_info to ebin files.
Expand Down
12 changes: 8 additions & 4 deletions src/erlydb/erlydb.erl
Expand Up @@ -94,7 +94,8 @@
[start/1,
start/2,
code_gen/2,
code_gen/3]).
code_gen/3,
code_gen/4]).

%% useful for debugging
-define(L(Obj), io:format("LOG ~w ~p\n", [?LINE, Obj])).
Expand Down Expand Up @@ -148,6 +149,9 @@ code_gen(Driver, Modules) ->
%% @spec code_gen(Driver::atom(), [Module::atom()], Options::proplist())
%% -> ok | {error, Err}
code_gen(Driver, Modules, Options) ->
code_gen(Driver, Modules, Options, []).

code_gen(Driver, Modules, Options, IncludePaths) ->
DriverMod = driver_mod(Driver),
case DriverMod:get_metadata(Options) of
{error, _Err} = Res ->
Expand All @@ -156,7 +160,7 @@ code_gen(Driver, Modules, Options) ->
lists:foreach(
fun(Module) ->
case process_module(DriverMod, Module, Metadata,
Options) of
Options, IncludePaths) of
ok ->
ok;
Err ->
Expand All @@ -165,8 +169,8 @@ code_gen(Driver, Modules, Options) ->
end, Modules)
end.

process_module(DriverMod, Module, Metadata, Options) ->
case smerl:for_module(Module) of
process_module(DriverMod, Module, Metadata, Options, IncludePaths) ->
case smerl:for_module(Module, IncludePaths) of
{ok, C1} ->
ModName = smerl:get_module(C1),
case gb_trees:lookup(get_table(ModName), Metadata) of
Expand Down

0 comments on commit 0b47a34

Please sign in to comment.