module documentation

Templating wrapper support for Klein.

Class PlatedElement The element type returned by Plating. This contains several utility renderers.
Function resolveDeferredObjects Wait on possibly nested Deferreds that represent a JSON serializable object.
Constant ATOM_TYPES Undocumented
Variable StackType Undocumented
Function _extra_types Renderability for a few additional types.
Function _should_return_json Should the given request result in a JSON entity-body?
@inlineCallbacks
def resolveDeferredObjects(root): (source)

Wait on possibly nested Deferreds that represent a JSON serializable object.

Parameters
root:AnyJSON-serializable object that may contain Deferreds that resolve to JSON-serializable objects, or a Deferred that resolves to one.
Returns
Generator[Any, object, Any]A Deferred that fires with a Deferred-free version of root, or that fails with the first exception encountered.
ATOM_TYPES = (source)

Undocumented

Value
(cast(Tuple[Any, ...], (int))+cast(Tuple[Any, ...], (str)))+cast(Tuple[Any, ...], (float, None.__class__))
StackType = (source)

Undocumented

def _extra_types(input): (source)

Renderability for a few additional types.

def _should_return_json(request): (source)

Should the given request result in a JSON entity-body?

Parameters
request:IRequestUndocumented
Returns
boolUndocumented