pihentagy asked:

per-controller template folder?

Quote from: http://www.nitrohq.com/view/Nitro%3ATemplates

As seen in the code, every controller should be able to have a different template folder but I didn’t found out yet how it works exacly. So if you find out, replace this text.

Sorry, Fabian, I cannot get your way work.

(1 attempts)

Fabian answered:

You can set your template root via

Template.root = 'templates' 

in your run.rb, which would use the folder "templates" for your xhtml files.

If you have multiple controllers mapped like:

Server.map = {
  '/' => MyController,
  '/users' => UserController,
  '/feed' => RssController,
}

MyController templates will be in "templates/", UserController templates will be in "templates/users/" and RssController templates will be in "templates/feed/".

Rating: 1