[erlang-questions] ErlyWeb

Mikael Karlsson mikael.karlsson@REDACTED
Sun Oct 29 08:45:08 CET 2006


ErlyWeb looks great !
A flat directory structure is probably enough for most thing. If you consider
a nested structure I suggest you use the "erlang packages" extension by
Richard Carlsson. It is included in Erlang, but not so well documented for 
some reason.

http://www.erlang.se/publications/packages.html
http://www.it.uu.se/research/publications/reports/2000-001/

Regards
Mikael


lördag 28 oktober 2006 22:46 skrev Yariv Sadan:
> I thought about this folder structure, and my opinion was that the
> nested folder structure is unnecessary for the majority of
> applications. Having a flat directory makes it easy to open files in
> an IDE such as emacs, and it also allows you to easily install 3rd
> party components by dragging and dropping.
>
> I think ErlyWeb should support the nested structure if you want it,
> but it shouldn't be the default.
>
> BR
> Yariv
>
> > Currently ErlyWeb creates the following directory structure:
> > /apps/music/components/musician.erl
> > /apps/music/components/musician_controller.erl
> > /apps/music/components/musician_view.erl
> >
> > It might be easier for a large web app to keep controllers and views in
> > separate folders, like so:
> > /apps/music/components/controllers/musician_controller.erl
> > /apps/music/components/views/musician_view.erl
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions





More information about the erlang-questions mailing list