Django template tag for showing mermaid diagrams
Project description
Django Mermaid
Django template tag for showing mermaid diagrams.
Install
python -m pip install django-mermaid
Configuration
Add the django_mermaid.apps.MermaidConfig
to your INSTALLED_APPS
setting:
INSTALLED_APPS = [
..., # other apps
'django_mermaid.apps.MermaidConfig',
]
Usage
Once you have installed the app, you can use the mermaid
template tag in your templates.
{% load mermaid %}
{% mermaid "graph LR; A-->B;" %}
Contribute
Any contribution is welcome. If you have any ideas or suggestions, feel free to open an issue or a pull request. And don't forget to add tests for your changes.
License
Copyright (C) 2023 Artyom Vancyan. MIT
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
django-mermaid-0.0.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for django_mermaid-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3901f805432493ea25404486b9502b47c17cdb5eecacfc7bdcd2e5e9afa16e1c |
|
MD5 | de1130068b94aacc53286e3f66dc595a |
|
BLAKE2b-256 | a6d84a27a2fdcc0dbf2ed6a7a156bc2f191a13fcf92826dd5ec589f8859c2d63 |