Skip to content

Add option to ignore templating tags #691

@maxnordlund

Description

@maxnordlund

After reading #310 I think an option to ignore templating tags would solve it along with any other templating language the user might have.

Taking the Jinja/Django example from that issue:

{% extends "layout.html" %}
{% block body %}
  <ul>
  {% for user in users %}
    <li><a href="{{ user.url }}">{{ user.username }}</a></li>
  {% endfor %}
  </ul>
{% endblock %}

If tidy could be, in this case, convinced to ignore {% .. %} and { ... } tags then it would parse correctly. Same goes for the popular mustaches syntax {{ ... }} and <% ... %> for ERB/EEX.

This is a more general solution, and is similar to the custom tags option that already exists. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions