pystache.specloader module

This module supports customized (aka special or specified) template loading.

class pystache.specloader.SpecLoader(loader=None)[source]

Bases: object

Supports loading custom-specified templates (from TemplateSpec instances).

load(spec)[source]

Find and return the template associated to a TemplateSpec instance.

Returns the template as a unicode string.

Arguments:

spec: a TemplateSpec instance.