A
A
Alexey Yarkov2017-04-17 22:04:14
Pug
Alexey Yarkov, 2017-04-17 22:04:14

Is there something similar in PUG?

mixin span_with_attrs(...attrs)
  span([...attrs])
    block

+span_with_attrs('id=spanid', 'data-msg=Message')
//-<span id="spanid", data-msg="Message"></span>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Kitmanov, 2017-04-17
@yarkov

https://pugjs.org/language/attributes.html#attributes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question