API Reference

Caution

Unless otherwise explicitly documented, the objects referenced here are documented solely for exploration purposes and do not feature stable APIs for public use.

Interfaces

Interfaces for rendering Nikola with chameleon.

The most important interface in this package for themes is IPageKind and its various subclasses. These function similarly to IBrowserLayer in a Zope 3 application, in that they are applied to the request variable when a template is rendered, and more specific templates or macros can be registered for the request based on that layer. Each request will only have one such interface applied to it.

Similarly, the ICommentKind (with its subclasses ICommentKindNone and ICommentKindAllowed and its various system types markers) will be applied to the view variable.

Templating

Templating support for Chameleon under Nikola.

Adapters

Adapters for various object types.

Feeds

The Chameleon ZPT plugin for nikola.

Macros

Supporting code for z3c.macro.

Request

Request objects.

View

View objects.

These objects will typically provide chunks of functionality that are ugly to write and/or test in templates. They will be registered in ZCML against specific (context, request) pairs (as specific as needed). They (and their attributes, methods and templates) can then be easily accessed in a template by traversal: context/@@view_name/method.

Plugin

The Chameleon ZPT plugin for nikola.

ZCML

ZCML directives.

New in version 0.0.1a2.