diff --git a/docs/architecture.rst b/docs/architecture.rst index 6d3d026..dfd5d17 100644 --- a/docs/architecture.rst +++ b/docs/architecture.rst @@ -4,10 +4,10 @@ Architecture Definitions ~~~~~~~~~~~ -* ``node``: the smallest data available, it represents a content stored into the datastore. An node must contains +* ``node``: the smallest data available, it represents a content stored into the datastore. A node must contain * ``id``: the internal identifier used by the datasource * ``path``: the path to reach the node, the path is the external identifier to the node - * ``data``: a dictionnary of key-value representing the content + * ``data``: a dictionary of key-value representing the content * ``type``: the node type, the node type will be used to handle the node * ``manager``: the manager code which handle this node * ``created_at`` @@ -86,4 +86,4 @@ assets. So you should/must configure your ``.bowerrc`` like this. { "directory": "resources/static/vendor" - } \ No newline at end of file + } diff --git a/element/plugins/presentation/presentation.py b/element/plugins/presentation/presentation.py index 89c2eb1..453ff9f 100644 --- a/element/plugins/presentation/presentation.py +++ b/element/plugins/presentation/presentation.py @@ -16,8 +16,7 @@ import element.node class PresentationHandler(element.node.NodeHandler): - def __init__(self, templating, formatter): - self.templating = templating + def __init__(self, formatter): self.formatter = formatter def get_name(self): @@ -64,6 +63,6 @@ def get_defaults(self, node): return {} def execute(self, request_handler, context): - self.render(request_handler, self.templating, context.settings['template'], { + return 200, context.settings['template'], { 'context': context, - }) + } diff --git a/element/plugins/presentation/resources/config/shower.yml b/element/plugins/presentation/resources/config/shower.yml index b6acdbc..5fcb4b4 100644 --- a/element/plugins/presentation/resources/config/shower.yml +++ b/element/plugins/presentation/resources/config/shower.yml @@ -2,7 +2,6 @@ services: element.plugins.presentation: class: element.plugins.presentation.presentation.PresentationHandler arguments: - - '@ioc.extra.jinja2' - '@element.plugins.formatter' tags: diff --git a/element/plugins/presentation/resources/templates/slideshare.html b/element/plugins/presentation/resources/templates/slideshare.html index 1a42174..d65c13c 100644 --- a/element/plugins/presentation/resources/templates/slideshare.html +++ b/element/plugins/presentation/resources/templates/slideshare.html @@ -12,7 +12,7 @@

{{ context.title }}