Module

babel

Babel extraction plugin for Kida templates.

Usage inbabel.cfg::

[kida: templates/**.html]
encoding = utf-8

Requires thebabelpackage to be installed. Registration is via thebabel.extractors entry point in pyproject.toml.

Functions

extract 4 Any
Babel extraction method for Kida templates. Yields ``(lineno, function, messag…
def extract(fileobj: IO[bytes], keywords: list[str], comment_tags: list[str], options: dict[str, Any]) -> Any

Babel extraction method for Kida templates.

Yields(lineno, function, message, comments)tuples compatible with the Babel extraction interface.

Parameters
Name Type Description
fileobj IO[bytes]
keywords list[str]
comment_tags list[str]
options dict[str, Any]
Returns
Any