Add support for Django HTML templates

This commit is contained in:
HiPhish 2024-06-14 01:22:13 +02:00
parent 073e45546a
commit c5b3067601
3 changed files with 31 additions and 0 deletions

View file

@ -17,6 +17,8 @@ Added
- Recipes section in the manual
- Django HTML support (preliminary, will only pass through injected languages)
- WebGL Shading Language (WGSL) support
- Missing patterns for C++:

View file

@ -0,0 +1,3 @@
;;; Intentionally empty. A Django template contains HTML, and this file exists
;;; so that the HTML nodes can be highlighted. This query only exists to
;;; satisfy the requirements of this plugin.

View file

@ -0,0 +1,26 @@
{# This is a comment #}
{% extends 'some/other/template.html' %}
{% load some_lib %}
{% block content %}
<ul>
{% for user in users %}
<li>
{{ user.name }}
{% if user == current_user %}
(you)
{% endif %}
</li>
{% endfor %}
</ul>
<div>
<h3>Some title</h3>
<p>
This is some <em><strong>dummy</strong></em> template for testing.
</p>
<hr />
</div>
{% endblock %}