дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-06 18:17:15 +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]>
11 рядки
212 B
Python
11 рядки
212 B
Python
from django.urls import path
|
|
|
|
from . import views
|
|
|
|
app_name = "shop"
|
|
|
|
urlpatterns = [
|
|
path("", views.product_list, name="products"),
|
|
path("products/<slug:slug>/", views.product_detail, name="product"),
|
|
]
|