1602/express-on-railway — Issue #95: application_controller.js not called if using jade
Author: nesterko
Created: 2012-01-14 03:08:55+00:00
State: open

Hi,

THANK YOU for awesome work. This is a great addition on top of express, and JugglingDB is like an icing on the cake.

So here is a small issue. When using Jade instead of ejs for templates, I need to do

layout(false)

so that Jade templates use inheritance correctly. I wanted to do

before ->
layout false
next()

in application_controller.coffee, but this did not work (application_controller.coffe is not called). I had to put this statement inside the controller, from which the render() function for the template is called.

This is not convenient if I have more than one controller that needs layout(false), so would be good to have application_controller.coffe called (as advertised on railwayjs.com) for code sharing.

Please let me know if this is a valid issue. Thank you.