jeudi 6 décembre 2018

Express Handlebars - adding unique stylesheets and scripts to different pages' s

I'm trying to add content into the head tags of my handlebars layout but haven't figured out a way to make it work. Basically I just want to be able to add links to stylesheets or javascript files on particular pages, not site-wide. I've tried working with helpers and partials but nothing has worked so far, I think part of the problem is because most suggestions are for regular handlebars and they don't work quite right with express handlebars.

Should I use multiple layouts?

What I'm trying to do - layout.handlebars:

<!DOCTYPE html>
<head>
    <title></title>
    <link rel="stylesheet" href="/css/site-wide-styles.css">
    
</head>
<body>
    }
</body>
</html>




Aucun commentaire:

Enregistrer un commentaire