M
M
myspace2017-04-01 17:46:37
Node.js
myspace, 2017-04-01 17:46:37

How to interpolate a class name in jade?

I need to concatenate a piece of the class name with a variable, how to do it? it doesn't work .alert.alert-#{message.status}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-04-01
@myspace

.alert(class=`alert-${message.status}`)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question