Unable to include files in templates #101

pikeas opened this Issue Oct 9, 2011 · 1 comment


None yet
1 participant

pikeas commented Oct 9, 2011

Include directives in templates aren't working.

require('zappa') ->

@use 'bodyParser', 'methodOverride', @app.router, 'static','cookieParser', session: {secret: 'fnord'}, 'cookies'
@set 'view engine': 'jade', views: "#{__dirname}/views"

@get '/': -> @render 'index'

@view index: '''
    include header
    p Blah blah blah

This fails with a bad file descriptor error on console. The following also fail: "include header.jade", "include views/header", "include views/header.jade". The same thing happens when trying to use an include statement in a template on disk (eg, in layout.jade).

pikeas commented Feb 24, 2015

Abandoned project, closing issue.

pikeas closed this Feb 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment