mauricemach / zappa

Node development for the lazy.
zappajs.org
MIT License
949 stars 81 forks source link

Unable to include files in templates #101

Closed pikeas closed 9 years ago

pikeas commented 13 years ago

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 9 years ago

Abandoned project, closing issue.