Insert dynamic content in markdown, without using a separate template file.
Project description
minsert
Insert dynamic content in markdown, without using a separate template file.
Motivation
Inspired by jinja. 😂
Your actual markdown file is the template file itself. Just make a block of content just by using comments, which indicate the start and end of the block.
This is really great for GitHub repo README. No hassle of creating a separate template file.
Installation
pip install minsert
Syntax
Start a block : <!-- start: thing -->
End of a block: <!-- end -->
You must end current block before starting a new one.
Usage
from minsert import MarkdownFile
file = MarkdownFile('test.md')
things = {'thing1': 'hi hello',
'thing2': 'ping pong',
}
file.insert(things)
Example
Take a long hard look at this gif!
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
minsert-0.0.15.tar.gz
(4.0 kB
view hashes)