     return res.redirect '/login'
   next()
 
+<% } %>  
 app = express()
 app.configure ->
   # jade templates from templates dir

  app.use passport.session()
  # assigin login rules after assigning static route
  app.use ensureAuthenticated
  
  # logging
  app.use express.logger()
  


# controllers
publicController = require './server/controllers/public_controller'

<% if (useAuth) { %>
# some controllers for admin/auth
accountController = require './server/controllers/account_controller'
authController = require './server/controllers/auth_controller'

