2

The official style of the project I'm working on is to indent after template control statements. We're using jinja2 templates with altered open/closing tags too...

 <ul>
    {% for category in categories %}
       <li>...</li>
    {% endfor %}
 </ul>

Some with if statements, elses, etc.

Is there a way to configure webmode to do this?

Dan
  • 32,980
  • 7
  • 102
  • 169
Shaun
  • 177
  • 8
  • web-mode.el should handle like this by default. Are you sure the good template engine is associated with your template ? You can check this with web-mode-debug – fxbois Mar 08 '16 at 20:34
  • maybe https://github.com/fxbois/web-mode/issues/669 ? – djangoliv Apr 03 '17 at 16:12

0 Answers0