https://github.com/btbytes/mdninja
mdninja + markdown + jinja2 templating = beautiful HTML documents.
https://github.com/btbytes/mdninja
html jinja2 markdown python static-pages
Last synced: 11 months ago
JSON representation
mdninja + markdown + jinja2 templating = beautiful HTML documents.
- Host: GitHub
- URL: https://github.com/btbytes/mdninja
- Owner: btbytes
- Created: 2017-11-15T04:48:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-05-23T14:52:30.000Z (almost 3 years ago)
- Last Synced: 2025-04-30T22:16:12.988Z (11 months ago)
- Topics: html, jinja2, markdown, python, static-pages
- Language: Python
- Size: 5.86 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
=======
mdninja
=======
**mdninja + markdown + jinja2 = beautiful HTML documents**
`mdninja` is a document processor that converts markdown documents into HTML document by applying Jinja2 templating.
Installation
------------
::
pip install mdninja
Usage
-----
Simple use:
::
mdninja doc.md -o doc.html
If you want to use a different template:
::
mdninja doc.md -o doc.html --template=stylish.html
The default template is:
::
{% for title in meta.title %}{{title}} {% endfor %}
{% for title in meta.title %}{{title}} {% endfor %}
{{ body }}
Metadata (like `title` above) is added to the document by adding metadata headers like this at the top of the file
::
Title: A simple document
Alternatively, you can specify the meatadata using a YAML style header too:
::
---
title: A simple document
---