I am try to get this to work in jade template:
html:
<li><i class="icon-comment"></i> 5</li>
jade:
li:i.icon-comment 5
ofcource 5 now is nested under i tag rather then li. Any way to do this?
I am try to get this to work in jade template:
html:
<li><i class="icon-comment"></i> 5</li>
jade:
li:i.icon-comment 5
ofcource 5 now is nested under i tag rather then li. Any way to do this?
In my templates I do it like this:
li
i.icon-comment
| 5
There is many ways like:
|
li
i.icon-comment
| 5
li #[i.icon-comment] 5
© 2022 - 2024 — McMap. All rights reserved.