One thought hanging around my head is to use something like a static file tree listing of a directory to get a hold of the template-paths that should build up the restlet router.
e.g. for a directory with stuff like this:
$ tree
.
|-- src
| `-- main
| |-- java
| |-- kauri
| | |-- classloader.xml
| | |-- local
| | | `-- filter
| | |-- public
| | | |-- contact
| | | | |-- {code}
| | | | | `-- struct.js
| | | | `-- {code}.xml
| | | |-- contact-search.xml
| | | |-- index.js
| | | |-- model
| | | | `-- contact.js
| | | `-- ui
| | | `-- contacts-manager.xhtm
you get a fitting list of paths with
$ find -type f
./src/main/kauri/public/model/contact.js
./src/main/kauri/public/contact-search.xml
./src/main/kauri/public/ui/contacts-manager.xhtml
./src/main/kauri/public/contact/{code}.xml
./src/main/kauri/public/contact/{code}/struct.js
./src/main/kauri/public/index.js
This kinda automatically lists template-uri's that could be 'attached' to a restlet router, uhuh.
Together with this there should be some mechanism to allow 'activiating' some of these resources: ie. recognise them as resource-producers (tewmplates, groovy controller, ...) rather then static content to be served up.
Obviously there are quite some remarks to make