Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

nunjucks

NestJS and TailwindCSS app to reload when I make changes to style/layout

October 12, 2022 by Magenaut

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.

Categories Node.js, Q&A Tags nestjs, node.js, nunjucks, tailwind-css, webpack Leave a comment

How can I define global variables in nunjucks?

September 30, 2022 by Magenaut

Using nunjucks, how can I define some global variables that should always be available within all templates?

Categories Node.js, Q&A Tags node.js, nunjucks Leave a comment

How to use nunjucks macros in the browser client-side?

September 27, 2022 by Magenaut

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:

Categories Node.js, Q&A Tags javascript, node.js, nunjucks Leave a comment

Loop by integer value with Nunjucks Templating

September 26, 2022 by Magenaut

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.

Categories Node.js, Q&A Tags javascript, node.js, nunjucks, templating Leave a comment

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress