Node js hbs module and engine
问题 I'm new to node js and came across this hbs module and saw it in this part code for example : app.set('view engine', 'html'); app.engine('html', require('hbs').__express); can anyone please explain what is hbs (handlebars - but what does it do)? and why the second line is needed if the first already says that the files will be opened as html Thank you! 回答1: hbs is a express.js wrapper for the handlebars.js javascript template engine . Handlebars.js is a template engine to make writing html