Note that there are some explanatory texts on larger screens.

plurals
  1. POnode.js + express.js + dust.js issues
    primarykey
    data
    text
    <p>The quick question: why won't express.js run with dust.js?<br> I know it's not officially supported, but dust.js even has issues with my node.js version.<br> Node won't even start due to require.path issues. </p> <pre><code>server:testapp treejanitor$ node --version v0.6.12 </code></pre> <p>I get issues when setting the app engine to dust. (<em>app.js</em> in express)</p> <pre><code>var dust = require('dust'); ... app.set('view engine', 'dust'); </code></pre> <p>I'm showing the console here to give you my simple list of modules.<br> Also someone searching for the same problem might cut/paste the error.</p> <pre><code>server:hummr treejanitor$ npm list application-name@0.0.1 /Users/treejanitor/git/testapp/testapp ├── consolidate@0.3.0 extraneous ├── dust@0.3.0 ├─┬ express@2.5.8 │ ├─┬ connect@1.8.7 │ │ └── formidable@1.0.9 │ ├── mime@1.2.4 │ ├── mkdirp@0.3.0 │ └── qs@0.4.2 └─┬ jade@0.25.0 ├── commander@0.5.2 └── mkdirp@0.3.0 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.&lt;anonymous&gt; (module.js:378:11) at Object.&lt;anonymous&gt; (/Users/treejanitor/git/testapp/testapp/node_modules/dust/lib/server.js:6:8) </code></pre> <p>I tried the following attempt with no luck:<br> <a href="https://stackoverflow.com/questions/10459770/dust-js-load-template-from-filesystem-in-node-js">Dust.js load template from filesystem in Node.js</a> </p> <p>NOTE: I tried the alpha version of express (3.0) which didn't help.<br> Same goes for consolidate.js and all the modules in that <a href="http://spalatnik.com/blog/?p=54" rel="nofollow noreferrer">example</a>.</p> <hr> <p>Some reasons why I am interested in node + express + dust:<br> <a href="https://engineering.linkedin.com/frontend/client-side-templating-throwdown-mustache-handlebars-dustjs-and-more" rel="nofollow noreferrer">LinkedIn picks dustjs</a><br> <a href="http://twitter.github.com/bootstrap/" rel="nofollow noreferrer">Twitter's Bootstrap framework</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload