The quick question: why won't express.js run with dust.js?
I know it's not officially supported, but dust.js even has issues with my node.js version.
Node won't even start due to require.path issues.
server:testapp treejanitor$ node --version
v0.6.12
I get issues when setting the app engine to dust. (app.js in express)
var dust = require('dust');
...
app.set('view engine', 'dust');
I'm showing the console here to give you my simple list of modules.
Also someone searching for the same problem might cut/paste the error.
server:hummr treejanitor$ npm list
[email protected] /Users/treejanitor/git/testapp/testapp
├── [email protected] extraneous
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected]
├── [email protected]
└── [email protected]
server:testapp treejanitor$ supervisor app.js
DEBUG: Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
at Function.<anonymous> (module.js:378:11)
at Object.<anonymous> (/Users/treejanitor/git/testapp/testapp/node_modules/dust/lib/server.js:6:8)
I tried the following attempt with no luck:
Dust.js load template from filesystem in Node.js
NOTE: I tried the alpha version of express (3.0) which didn't help.
Same goes for consolidate.js and all the modules in that example.
Some reasons why I am interested in node + express + dust:
LinkedIn picks dustjs
Twitter's Bootstrap framework