For the server-side in a Jade Template:
Instead of:
- var i;
- for(i = 1, i < 10; i++)
- {
- // Do things...
- }
...do...
-
var i;
for(i = 1, i < 10; i++)
{
// Do things...
}
You still use the hyphen '-' character, but you simply 'indent' your code. Everything 'indented' is treated as a block (just like normal Jade usage).