diff --git a/express-handlebars/express-handlebars-tests.ts b/express-handlebars/express-handlebars-tests.ts index 70d5d6f91..3fa6ef31d 100644 --- a/express-handlebars/express-handlebars-tests.ts +++ b/express-handlebars/express-handlebars-tests.ts @@ -6,10 +6,12 @@ import express = require('express'); import exphbs = require('express-handlebars'); var app = express(); -app.engine('handlebars', exphbs({defaultLayout: 'main'})); +var hbs: Exphbs = exphbs.create({defaultLayout: 'main'}); + +app.engine('handlebars', hbs.engine); app.set('view engine', 'handlebars'); app.listen(1337); -console.log('Started dummy server on port 1337...'); +console.log('Test Express Handlebars app on port 1337..'); console.log('Done'); process.exit(0);