Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a few lines about convention used for locating views.

  • Loading branch information...
commit 4a008d3d0bea2327fb0ae26ba5b1a9f67859574d 1 parent a49f5a6
@kishorenc authored
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.
Please sign in to comment.
Something went wrong with that request. Please try again.