Handlebars with Express: different html head for different pages
问题 I am using Handlebars in an Express Node.js app. My layout.html file includes a <head> section. How can I make the <head> section different for different pages? (So that I can, for example, reference a JavaScript file in only one page, and vary the <title> for each page.) layout.html looks like this: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src='/public/ajsfile.js'></script> <link type='text/css' href="/public/style.css" rel="stylesheet"> </head> <body> {{{body}}} </body>