Huy Tran Huy Tran - 2 years ago 197
Javascript Question

Loop in Jade engine

I want to use a simple loop like

for(int i=0; i<10; i++){}

How do I use it in the Jade engine? I'm working with Node.js and use the expressjs framework.

Answer Source

for example:

- for (var i = 0; i < 10; ++i) {
  li= array[i]
- }

you may see for detailed document.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download