Answer the question
In order to leave comments, you need to log in
How to nest an element in a variable in PUG?
I want to write the svg icon code into a variable. How to do it?
I tried
-
const icon =
svg.svg-icon
path
In the examples, only properties are put into variables, nowhere is there an example of adding an element
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question