Skip to content

Commit bc0b6c5

Browse files
add some example pictures of two features implemented (#210)
1 parent 076b36c commit bc0b6c5

File tree

4 files changed

+15
-16
lines changed

4 files changed

+15
-16
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ A language server for the Django web framework.
2424
## Features
2525

2626
- [x] **Completions** - Template tag autocompletion with snippets
27+
![Completions](./docs/assets/autocomplete.png)
28+
2729
- [x] **Diagnostics** - Real-time error checking and validation
30+
![Diagnostics](./docs/assets/diagnostics.png)
31+
2832
- [ ] **Go to definition** - Jump to template, block, or variable definitions
2933
- [ ] **Find references** - See where templates and blocks are used
3034
- [ ] **Hover** - View documentation and type info on hover

docs/assets/autocomplete.png

106 KB
Loading

docs/assets/diagnostics.png

101 KB
Loading

tests/project/djls_app/templates/djls_app/base.html

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,19 @@
66
<title>Test Page</title>
77
</head>
88
<body>
9-
<h1>Hello, {{ user.username }}!</h1>
10-
<p>This is a test template.</p>
11-
{% if items %}
12-
<ul>
13-
{% for item in items %}<li>{{ item.name }}</li>{% endfor %}
14-
</ul>
15-
{% else %}
16-
<p>No items found.</p>
17-
{% endif %}
18-
<img src="{% static 'images/logo.png' %}" alt="Logo">
19-
{# This is a comment #}
209

2110
{% block content %}
22-
{% block foo %}
23-
{% endblock bar %}
24-
25-
{% if foo %}{% endif %}
26-
{% else %}
11+
<h1>Hello, {{ user.username }}!</h1>
12+
<p>This is a test template.</p>
13+
{% if items %}
14+
<ul>
15+
{% for item in items %}<li>{{ item.name }}</li>{% endfor %}
16+
</ul>
17+
{% else %}
18+
<p>No items found.</p>
19+
{% endif %}
20+
<img src="{% static 'images/logo.png' %}" alt="Logo">
21+
{# This is a comment #}
2722
{% endblock %}
2823

2924
</body>

0 commit comments

Comments
 (0)