mirror of
https://github.com/django-components/django-components.git
synced 2025-08-08 16:27:59 +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
|
@ -1,11 +1,11 @@
|
|||
from typing import Any, Dict
|
||||
|
||||
from django_components import component
|
||||
from django_components import Component, register
|
||||
|
||||
|
||||
# Used for testing the safer_staticfiles app in `test_safer_staticfiles.py`
|
||||
@component.register("safer_staticfiles_component")
|
||||
class RelativeFileWithPathObjComponent(component.Component):
|
||||
@register("safer_staticfiles_component")
|
||||
class RelativeFileWithPathObjComponent(Component):
|
||||
template_name = "safer_staticfiles.html"
|
||||
|
||||
class Media:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue