Templateless markdown template engine
Project description
markright v0.2.1
Templateless markdown template engine
Python usage
Install this package pip install markright
and create README.md
file containing:
# MyPackage v­<!---ver--><!---/ver-->
Create python script like markright_test.py
:
from markright import mark
data = {
"ver": "0.0.1"
}
mark("README.md", data)
Run your script python ./markright_test.py
and you will get README.md
looks pretty awsome after rendering, for example on gitlab :
# MyPackage v­<!---ver-->0.0.1<!---/ver-->
Restarting the script does not require clearing the template, just run the script again with new data!
CLI Usage
markright -h # for help
markright -f README.md -d data.json # take data from json file
markright -f README.md -d data.ini # take data from [markright] section of ini file
markright -f README.md -d {"version": "1.0.0"} # data from json string
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markright-0.2.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for markright-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f540f2de520080d8988f1647c44ad05d80fb910f45a3045343c1223ce8a319f |
|
MD5 | 5ac721d5f54b38665ece12e9be35c1f8 |
|
BLAKE2b-256 | 6cc526377eae91158b63db5e0cf2ec918221f3c611a91075844bb637d98717a3 |