R
R
rizzli2016-05-09 23:54:37
JavaScript
rizzli, 2016-05-09 23:54:37

Nested tags and if in Jade?

How to implement the following in Jade?

if (true)
  a.hidden
else
  a.visible
вложенные теги

<a class="hidden"> <span> ... </span> </a>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Muhammad, 2016-05-10
@rizzli

a(class=true ? "visible" : "hidden")
   // вложенные теги

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question