mirror of
https://github.com/django-components/django-components.git
synced 2025-07-14 04:14:58 +00:00
16 lines
383 B
Python
16 lines
383 B
Python
from .component_registry import ComponentRegistry, AlreadyRegistered, NotRegistered # NOQA
|
|
|
|
class Component(object):
|
|
def __init__(self):
|
|
self._media = self.Media()
|
|
|
|
def context(self):
|
|
return {}
|
|
|
|
class Media:
|
|
template = None
|
|
css = {}
|
|
js = ()
|
|
|
|
# This variable represents the global component registry
|
|
registry = ComponentRegistry()
|