Answer the question
In order to leave comments, you need to log in
How to use variable in href link attribute?
a(href="/characters/current - 1" class="new")
There is such a link, current, this is a variable, I tried to write a(href="/characters/#{current - 1}" class="new")
it But it didn’t work, tell me how to do it right. Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question