So siehts ganz gut aus !
This commit is contained in:
16
node_modules/pug/examples/dynamicscript.js
generated
vendored
Normal file
16
node_modules/pug/examples/dynamicscript.js
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
*/
|
||||
|
||||
var pug = require('../');
|
||||
|
||||
var locals = {
|
||||
users: {
|
||||
tj: { age: 23, email: 'tj@vision-media.ca', isA: 'human' },
|
||||
tobi: { age: 1, email: 'tobi@is-amazing.com', isA: 'ferret' }
|
||||
}
|
||||
};
|
||||
|
||||
var fn = pug.compileFile(__dirname + '/dynamicscript.pug');
|
||||
console.log(fn(locals));
|
||||
Reference in New Issue
Block a user