mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 01:08:00 +00:00
refactor: Use top-level exports as public API (#562)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
parent
d819f3ff49
commit
e771a0aaaf
30 changed files with 615 additions and 598 deletions
|
@ -2,11 +2,11 @@ from typing import Any, Dict
|
|||
|
||||
from django.http import HttpResponse
|
||||
|
||||
from django_components import component, types
|
||||
from django_components import Component, register, types
|
||||
|
||||
|
||||
@component.register("single_file_component")
|
||||
class SingleFileComponent(component.Component):
|
||||
@register("single_file_component")
|
||||
class SingleFileComponent(Component):
|
||||
template: types.django_html = """
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue