'public' is a weird word which has special meaning in the context of web development for legacy reasons. I think we could find a better word. 'Resources', 'web', 'files'?
— Jenna Fox On Tuesday, 20 December 2011 at 8:41 AM, Magnus Holm wrote: > 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 (mailto:Camping-list@rubyforge.org) > http://rubyforge.org/mailman/listinfo/camping-list > >
_______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list