Skip to content

Django Template Syntax support #102

Description

@PeterNerlich

Is your feature request related to a problem? Please describe.
When SemanticDiff tripps over django template syntax, it fails to parse the whole HTML document.

Describe the solution you'd like
Attempt to parse django template syntax before HTML

Describe alternatives you've considered
Don't automatically try django template syntax but add a toggle to explicitly request it (keeps current behavior / code path for 99% of the users)

Additional context
Currently especially problematic when django expressions are contained in values of HTML attributes that use the same quotes the expression uses internally: <a href='{% url 'my_link' %}'></div>–currently parsing fails because the value to href is expected to end with the single quote before my_link

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestgithubThis issue is about our GitHub App

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions