.. _bibble.io.jinja_writer: ====================== bibble.io.jinja_writer ====================== .. py:module:: bibble.io.jinja_writer Type Aliases ------------ .. autoapisummary:: bibble.io.jinja_writer.Middleware Classes ------- .. autoapisummary:: bibble.io.jinja_writer.JinjaWriter Module Contents =============== .. py:data:: Middleware :type: TypeAlias :value: API.Middleware_p | API.BidirectionalMiddleware_p .. _bibble.io.jinja_writer.JinjaWriter: .. py:class:: JinjaWriter(stack, *, format = None, logger = None, templates = None) Bases: :py:obj:`bibble.io.writer.BibbleWriter` Use jinja templates to write out bibtex .. py:method:: _wrap_braces(val) -> .. py:method:: make_footer(library, file = None) -> .. py:method:: make_header(library, title = None) -> .. py:method:: make_lib(*, header, body, footer) -> .. py:method:: update_templates(templates) -> .. py:method:: visit_entry(block) -> .. py:method:: write(library, *, templates = None, **kwargs) -> Write the library to a string, and possbly a file # TODO write failure reports to a separate file .. py:attribute:: _env :type: jinja2.Environment .. py:attribute:: _join_char :value: Multiline-String .. raw:: html
Show Value .. code-block:: python """ """ .. raw:: html
.. py:attribute:: _templates :type: dict[str, jgdv.Maybe[jinja2.Template]]