Using html2jade to convert html files to jade.
Also, facing issue in converting html to jade if html has commented blocks like:
<div id='view-templates'>
<!--<div id='project-view'>
<div id='toolbar'>
<div id='top-list'></div>
<div id='intvl-options'></div>
<div id='display-options'></div>
</div>
<div id='top-chart'>
</div>
<div id='bw-chart'>
</div>
</div>-->
</div>
The above code snippet is translated as:
#view-templates
//
<div id='project-view'>
<div id='toolbar'>
<div id='top-list'></div>
<div id='intvl-options'></div>
<div id='display-options'></div>
</div>
<div id='top-chart'>
</div>
<div id='bw-chart'>
</div>
</div>
No, there is no set way to use tabs or spaces. But you can go from one to the other without any problem. That is if you change all tabs to spaces or vice versa, Jade will understand what is being written so, but must be the entire document or file must be changed.
Recommendation, be very careful with whitespace and comments here.