Jade template how to add text after tag on the same level

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?

Answers


In my templates I do it like this:

li
  i.icon-comment
  |  5

Need Your Help

How To catch python stdout in c++ code

c++ python redirect python-c-api python-embedding

I have a program which during it's run sometimes needs to call python in order to preform some tasks. I need a function that calls python and catches pythons stdout and puts it in some file.

React/Redux - dispatch action on app load/init

reactjs redux

I have token authentication from a server, so when my Redux app is loaded initially I need make a request to this server to check whether user is authenticated or not, and if yes I should get token...