R
R
Rob1n Bobin2017-03-30 23:14:40
Pug
Rob1n Bobin, 2017-03-30 23:14:40

How to use variables in classes in pug?

Hello everyone, I took up pug and immediately the question arose of how to use variables in class names. In addition to the option with this spelling:
(class = variable)
I want something shorter. Type:
.{variable}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-03-30
@sp1rob

In short, it will not work, only an attribute.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question