Menu:

page message
  • PageMeta main-menu existiert nicht in der bevorzugten Sprache deutsch, benutzte english.
  • PageMeta blog-plugin existiert nicht in der bevorzugten Sprache deutsch, benutzte english.

PyLucid related terms and definitions

Term:
context_middleware.py
Short definition:
PyLucid specific plugin API
Content:

A context middleware is a special PyLucid API. It's similar to normal WSGI middlewares.

All PyLucid context middleware plugins would be initialized at the beginning and the result would be inserted at the end of the render process. This is necessary for all plug-ins if the content can be changed by other plugins, e.g.: A plugin should be able to add a link into the breadcrumb navigation line.

context middleware plugin are inserted via a special tag:

HTML
1
<!-- ContextMiddleware PluginName -->

Note: ContextMiddlewares works only in the global page template! You can't insert it into a PageContent then you will get the error: "context middleware 'FooBar' doesn't exist!"

See also:

0 comments for 'context_middleware.py':
    there exist no comment for 'context_middleware.py'
Leave a comment
tag navi help
Fork me on GitHub