I've been thinking about adding static files support for the Camping
Server, but I'm wondering how it should work.

Alternative 1:

  app.rb
  public
  public/style.css # example

Alternative 2:

  app.rb
  app/public
  app/public/style.css # example

And secondly, how would it work if you have multiple applications?

  camping app.rb app2.rb

And should files be served from where it's located or where it's run?

  app.rb # => contains `require "app2"`
  app/public/foo.html
  app2.rb # => the actual app
  app2/public/foo.html

Should /foo.html be served from app/public or app2/public?

// Magnus Holm
_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to