Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Express 3.1: ReferenceError: partial is not defined #61

Closed
sokoloveg opened this Issue · 1 comment

2 participants

@sokoloveg

node 0.8.20
express 3.1.0 (from npm)
coffeecup 0.3.19 (from github)

cd node_modules/coffeecup/examples/express/
coffee app.coffee

When trying to open http://localhost:3000/ error appears:

ReferenceError: partial is not defined
at Object.eval (eval at (/home/neos/node_modules/coffeecup/lib/coffeecup.js:410:10))
at eval (eval at (/home/neos/node_modules/coffeecup/lib/coffeecup.js:410:10))
at coffeecup.__express.render (/home/neos/node_modules/coffeecup/lib/coffeecup.js:458:25)
at coffeecup.__express (/home/neos/node_modules/coffeecup/lib/coffeecup.js:479:16)
at fs.readFile (fs.js:176:14)
at Object.oncomplete (fs.js:297:15)

Examples "/login" and "/inline" work fine.

@gradus
Owner

res.partial() and partial() (within templates) have been removed in express 3.x
removing line 12 in index.coffee in the express example will get rid of this error. If anyone has a non hacky way to address partials with express 3.x and coffeecup I would love to hear it.

@gradus gradus closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.