Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using different indentation for Jade

Tags:

pug

From this tutorial it seems that Jade requires 2-spaces tabs. Can I use another tabbing syntax with Jade?

like image 586
Randomblue Avatar asked Feb 03 '23 11:02

Randomblue


1 Answers

It's not necessary to use only two spaces for tabbing.

You can use any number of spaces (consistently) or a tab character to indent. The only quirk is you can't use both spaces and tabs at the same time, or it will give an error while compiling.

See this link Jade.

like image 57
Ali Raza Avatar answered Mar 04 '23 10:03

Ali Raza