mixin hero(title)
.hero
.hero__inner
h1.hero__title #{title}
So, my project uses a Jade mixin like the above on multiple pages and, when I compile the Jade to HTML pages, I have to copy that mixin on each page that it is used.
I can compile the pages using either grunt-jade or grunt-jade-contrib, but does anyone know how to use those modules (or any others) to globally pass that mixin to all pages so I don't have to copy it everytime?
Why not simply include it?
Include the file on all pages you need it at. And there are even plugins that can automatically detect and insert this stuff for you.