дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-05 01:31:41 +02:00
Adds a Django Template language: .html/.txt files in a templates folder of a project with manage.py (new [[framework-files]] detection), a Lezer grammar for tags, variables, filters and comments with HTML mounted between them, block folding/indent/matching, {% %} / {{ }} / {# #} pairing, end-tag insertion and completion, per-line {# #} comments, HTML language server and Emmet in the HTML parts, a banner offering the language for HTML files with Django tags elsewhere, a fixture and docs. The built-in HTML syntax check skips Django templates, whose tags the HTML grammar reports as errors.
Refs #2581
Co-authored-by: andreabasile <[email protected]>
5 рядки
217 B
HTML
5 рядки
217 B
HTML
<!-- Not in a templates folder: the editor offers Django Template from its tags. -->
|
|
{% load static %}
|
|
<p>Two cappuccini for <strong>{{ price|default:"€3" }}</strong></p>
|
|
<img src="{% static 'promo.png' %}" alt="">
|