#184 Webapp enhancements

brian Sun 6 Apr 2008

I've enhanced FindResourceStep to provide the features needed to do normal file web serving (which we need for the docs):

  • Defines the home page resource
  • Searches for file extensions
  • Searches for the index file to use for a directory
  • Redirects to use trailing slash on directories

The trailing slash redirect needs to be added to haven tables - you just need to provide an isDir method which returns true, then redirect will be taken care of automatically.

This work also resulted in some sys APIs changes: Uri.plusSlash, File.make(Uri, Bool), and File.plus(Uri, Bool) - the latter two skip the trailing slash check.

I've also written the docLib::WebApp documentation which details the ins and outs of my FindResourceStep enhancements (and the other steps).

I also started reworking the demo app to clean it up a little bit.

Login or Signup to reply.