Metadata-Version: 2.1
Name: mdninja
Version: 1.0.2
Summary: mdninja + markdown + jinja2 = beautiful HTML
Home-page: https://github.com/btbytes/mdninja
Author: Pradeep Gowda
Author-email: btbytes+mdninja@gmail.com
License: MIT
Keywords: markdown jinja2 publishing
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: Topic :: Utilities
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Requires-Python: ~=3.9
Requires-Dist: markdown
Requires-Dist: jinja2
Requires-Dist: click

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

::

	<!DOCTYPE html>
	<html>
		<head>
			<title>{% for title in meta.title %}{{title}} {% endfor %}</title>
		</head>
		<body>
			<h1>{% for title in meta.title %}{{title}} {% endfor %}</h1>
			{{ body }}
			<hr/>
		</body>
	</html>

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