Answer the question
In order to leave comments, you need to log in
How to use pug inside vue component?
The entire project is written in pug. I use this construction inside .pug files
<tamplate lang="pug">
.is__title.connect__title
button-counter
template: `
<tamplate lang="pug">
span {{ tr(lang).title }}
</tamplate>`
Answer the question
In order to leave comments, you need to log in
https://pugjs.org/api/reference.html
Connect pug and it should work like this:
import pug from 'pug';
//...
template: pug.render(`span {{ tr(lang).title }} `)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question