mkdocs plugin to insert jinja templates on any page
Project description
mktemplate
This is a plugin for mkdocs to render jinja templates in markdown documents.
Usage
Template files must be in templates/
in the root directory of your
mkdocs project.
An example template file might look like this:
<ul>
{% for item in items %}
<li>{{ item }}</li>
{% endfor %}
</ul>
Then in any of the pages of your mkdocs project use the following syntax to include a template and provide the variables.
{%
template "template.html" # filename of the template in templates/ directory
items:
- item 1
- item 2
- item 3
%}
This will generate the following result:
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
Packages used
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mkdocs-mktemplate-plugin-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf3ba764527becafb46fb505a5af976e2d4edd37e91a52639bc06a7f479f0f7 |
|
MD5 | 951189e6e627b824481f5e75e0073b93 |
|
BLAKE2b-256 | 22a011bf7a70825576e459c3be4d80669705fe49b8d8fc9c99b25909bc02ac16 |
Close
Hashes for mkdocs_mktemplate_plugin-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4411b0be28fd2ab2b3fa435bea1543fff4328f5635f8ec74743abe2195f931c |
|
MD5 | e699b610bee4e93785cabb3c838916a7 |
|
BLAKE2b-256 | 81c860af859b8135a58867f5f87e9bdc782498338050b4b8528d357dc1dca7b3 |