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?

  • 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 8 '16 at 20:34
  • maybe github.com/fxbois/web-mode/issues/669 ? – djangoliv Apr 3 '17 at 16:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.