A
A
Antonina-webdev2019-07-15 15:34:51
Pug
Antonina-webdev, 2019-07-15 15:34:51

How to pass a number to the mixin so that it remains a string?

There is code in the
mixin h3.article__title(data-number= +number )
I pass "01"
there, it is used in content: attr(data-number);
at the output I get "1"
But I need this zero! How to do, tell me

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-07-15
@Antonina-webdev

Why + before number? Maybe it's worth, I don't know, remove it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question