Answer the question
In order to leave comments, you need to log in
Why doesn't pug mixin work with svg?
I use this
mixin mixin icon(name)
svg(class="icon icon-#{name}")
use(xlink:href="img/svg-sprite.svg##{name}")
tried this
mixin icon( name)
svg(class="icon icon-" +name)
use(xlink:href="img/svg-sprite.svg#" + name)
call
+icon(phone)
substitutes NaN for name
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