Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set a variable in express.js

app.set('oneSetting', 'one');
app.set('twoSetting', 'two');
app.set('view engine','jade');

console.log(app.settings.oneSetting);
console.log(app.settings.twoSetting);
console.log(app.settings['view engine']);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #variable
ADD COMMENT
Topic
Name
9+5 =