W
W
webquestions2016-01-14 11:42:04
Pug
webquestions, 2016-01-14 11:42:04

How to integrate a jade variable instead of a class?

How to integrate a jade variable instead of a class?
a.link(href='').#{active}
doesn't work like this
The variable itself is declared above like this - var active = "active"
Error due to a.link(href='').#{active} like this Unexpected token `interpolation` expected `text`, `code`, `:`, `newline` or `eos`
UPD
a.link(href='',class='#{active}')
like this

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question