mirror of
https://github.com/django-components/django-components.git
synced 2025-10-14 07:51:59 +00:00
refactor: rename template_name to template_file (#878)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
b99e32e9d5
commit
d94a459c8d
29 changed files with 251 additions and 138 deletions
|
@ -65,7 +65,7 @@
|
|||
```py
|
||||
@register("my_comp")
|
||||
class MyComp(Component):
|
||||
template_name = "abc.html"
|
||||
template_file = "abc.html"
|
||||
```
|
||||
|
||||
Then:
|
||||
|
@ -112,7 +112,7 @@
|
|||
````py
|
||||
@register("my_comp")
|
||||
class MyComp(Component):
|
||||
template_name = """
|
||||
template_file = """
|
||||
{% extends "abc.html" %}
|
||||
|
||||
{% block inner %}
|
||||
|
@ -129,7 +129,7 @@
|
|||
```py
|
||||
@register("my_comp")
|
||||
class MyComp(Component):
|
||||
template_name = """
|
||||
template_file = """
|
||||
{% extends "abc.html" %}
|
||||
|
||||
{% load component_tags %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue