[][src]Module tp_note::filter

Structs

ContextWrapper

Tiny wrapper around Tera-context with some additional information.

TERA

Tera object with custom path() function registered.

Functions

path_filter

Add a new filter to Tera templates: path or path() sanitizes a string so that it can be used to assemble filenames or paths. In addition, path(alpha=true) prepends an apostroph when the result starts with a number. This way we guaranty that the filename never starts with a number. We do not allow this, to be able to distinguish reliably the sort tag from the filename.