An open API service indexing awesome lists of open source software.

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.

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
---