DEV Community

Discussion on: Using Includes/Partials In PugJS

 
nkratzmeyer profile image
Nathan Kratzmeyer

Did you check out my last post?
dev.to/nkratzmeyer/using-mixins-wi...
You can use the implicit attributes of a mixin to set attributes (including classes, id's, etc) on elements inside the mixin.

Thread Thread
 
thehomelessdev profile image
Santiago Rincón

Yeah! I checked it but when I wrote this I had not read your post. I will implement it following your post. Thank you.