shaman
unread,Mar 13, 2009, 3:33:54 PM3/13/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to erlyweb
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),