6.8.1 Templates plugin
The simplest kind of plugin is useful when you need to reuse custom templates. Say you do not like the HTML5 template for quotes and often want to use the same custom template. You can create a folder with the following structure.
The ‘pyproject.toml’ was already explained and the ‘__init__.py’ can be empty in this case. In this case the plugin name is plastex_div_quote. The content of ‘Quote.jinja2’ could be:
name: quote
<div class="quote">{{ obj }}</div>