NestJS and TailwindCSS app to reload when I make changes to style/layout
I am configuring a NestJS to automatically reload whenever I make changes to the styling, e.g. add a TailwindCSS class to an HTML element.
I am configuring a NestJS to automatically reload whenever I make changes to the styling, e.g. add a TailwindCSS class to an HTML element.
Using nunjucks, how can I define some global variables that should always be available within all templates?
I’m able to use client-side templating for nunjucks as I precompile from node.js and expose JS template files. I call the client-side templates like so:
I’m quite new to nunjucks and from what I have read this is not possible, but I was wondering if anyone had come up with a way of doing this.