Skip to content

Django tempate tags inside HTML tags #30

Description

@drvid

I have one request, I often use template tag conditionals inside my HTML elements to adjust attributes when rendered. For example:

<a class="{% if somevar %}class1{% else %}class2{% endif %}">Link</a>

or even...

<a{% if somevar %}
    class="some class"
    title="some title"
    {% endif %}>Link</a>

This type of usage doesn't seem supported, i.e: I have no syntax highlight or code folding when using Django template tags within HTML tags.

Other than this I have no complaints! Great package thanks for developing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions