First of all, I must say, that erlyweb is best web development
framework.

Simple patch proposed. It's a little correction to generate correct
path for AppDir and IncludePaths (current version generates incorrect
include path on Windows due to neglect of disk letter), something like
that:

compile(AppDir, Options) ->
 -   AppDir1 = case lists:reverse(AppDir) of
-                 [$/ | _] -> AppDir;
-                 Other -> lists:reverse([$/ | Other])
-             end,
+  AppDir1 = filename:absname(AppDir)

    IncludePaths =
+ [ filename:join(AppDir,X) || {i, X} <- Options],
-       lists:foldl(
-         fun({i, [$/ | _] = Path}, Acc) ->
-                 [Path | Acc];
-            ({i, Path}, Acc) ->
-                 [AppDir1 ++ "src/" ++ Path | Acc];
-            (_Opt, Acc) ->
-                 Acc
-         end, [AppDir1 ++ "src"], Options),


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to