Add a basic Component class.

This commit is contained in:
Emil Stenström 2015-06-11 21:14:21 +02:00
parent df22a4049f
commit 31261ece08
2 changed files with 26 additions and 0 deletions

View file

@ -1,4 +1,16 @@
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()