[Vuejs]-How can this rare '<a>' tag markup be written in pug?

0👍

I’m not familiar with Nuxt, but I’m assuming the final markup you’re going for is this:

<li>More features and functionalities (see all <nuxt-link to="/page">here</nuxt-link>)</li>

There are many ways to write this in Pug, but one of the cleanest is using tag interpolation:

li More features and functionalities (see all #[nuxt-link(to="/page") here])

But also note that it’s bad practice to make the text "here" or "click here" a link. The text of links should make sense outside of their context.

Leave a comment