Browse files

Added a few lines about convention used for locating views.

  • Loading branch information...
1 parent a49f5a6 commit 4a008d3d0bea2327fb0ae26ba5b1a9f67859574d @kishorenc committed Nov 29, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0
@@ -77,6 +77,14 @@ The `callback` parameter allows you to serve your views in a number of easy ways
// more use cases in example app
+Place your views in `/views` in app root. Each controller gets its own sub-directory inside `views`. For example, if you have a `show` method in your `fooController.js`, accessing `foo/show` will make Road look for the template file `views/foo/show.ejs`.
+ /controllers
+ /fooController.js
+ /views
+ /foo
+ /show.ejs
Road also supports custom routes.

0 comments on commit 4a008d3

Please sign in to comment.