docdown.template_adapters package

Submodules

docdown.template_adapters.pystache module

Adapter to use pystache to render a mustache template

class docdown.template_adapters.pystache.PystacheAdapter[source]

Bases: object

Adapter for NoteBlockPreprocessor to render mustache templates using pystache

render(template=u'', context=None, *args, **kwargs)[source]

docdown.template_adapters.string_format module

Adapter to use Python str.format() to render a template

class docdown.template_adapters.string_format.DefaultValueFormatter(default=u'')[source]

Bases: string.Formatter

String formatter which replaces keys found in the string but not in the replacement parameters with a default value.

The default value for the default is the empty string ‘’

get_value(key, args, kwds)[source]
class docdown.template_adapters.string_format.StringFormatAdapter[source]

Bases: object

Adapter for NoteBlockPreprocessor to render templates using standard python string substitution using named arguments.

render(template=u'', context=None, *args, **kwargs)[source]

docdown.template_adapters.template_string module

Adapter to use Python string.Template to render a template

class docdown.template_adapters.template_string.TemplateStringAdapter[source]

Bases: object

render(template=u'', context=None, *args, **kwargs)[source]

Module contents