Forum: Rails Engines development engines friendly framework from scratch

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Eea3feaacbe44706164289d068d94828?d=identicon&s=25 Peter Michaux (Guest)
on 2007-03-25 19:31
(Received via mailing list)
Hi,

I've been thinking about web frameworks because I will write a small
one in JavaScript to share code between client and server. I would
like to be able layer an application like engines allow in Rails. What
would an optimal directory structure for this?

So far I have this something  like this  where a top-level
config/environment.js would control layer loading order. The plugins
directory of a layer could be used to distribute sub-layers upon which
the depends.

* layers/
  * app/
    * config/
    * controllers/
    * db
    * doc
    * lib
    * models/
    * public/
    * plugins/
    * test/
    * views/
  * authentication/
    * config/
    * controllers/
    * db
    * doc
    * lib
    * models/
    * public/
    * plugins/
    * test/
    * views/
* config/
* log/
* tmp/

Any ideas or suggestions?

Thanks,
Peter
This topic is locked and can not be replied to.