{"repo":"pysnippet/django-mermaid","free":true,"listed":false,"github":"https://github.com/pysnippet/django-mermaid","clone":"git clone https://github.com/pysnippet/django-mermaid.git","description":"Django template tag for rendering mermaid diagrams.","language":"Python","stars":15,"topics":["django","mermaid","python","jinja","tag","template","diagram","graph"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Django Mermaid Mermaid is a JavaScript-based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically. And Django Mermaid aims to use mermaid diagrams in Django templates. Installation Configuration Add the django mermaid.apps.MermaidConfig to your INSTALLED APPS in your Django project's settings.py file. Usage After you configure the INSTALLED APPS , you will be able to load the mermaid in your template and use the template tags for rendering mermaid diagrams. Mermaid version By default, Django Mermaid uses the 9.4.3 version of mermaid. However, if you want to use a specific version of mermaid, you can set the MERMAID VERSION variable in your Django project's settings.py file. Make sure the version you specify is available on the mermaid CDN, and has the mermaid.min.js file. Mermaid theme To set a default theme for the whole project, set the MERMAID THEME variable in your Django project's settings.py file. However, Django Mermaid uses the default theme of mermaid by default. Also, check out the mermaid docs for the available themes. Also, you can provide the theme right in the template tag which will dynamically override the value of the MERMAID THEME variable. Mermaid use CDN By default, Django Mermaid uses the local copy of mermaid from staticfiles. However, if you want to use the CDN version directly, you can set the MERMAID USE CDN variable in your Django project's settings.py file. Mermaid theme variables Yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/pysnippet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pysnippet/django-mermaid/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}