Templateless markdown template engine
Project description
markright v1.0.0
Templateless markdown template engine
Install
pip install markright
Python usage
Create a README.md
file containing:
# MyPackage v­<!---ver--><!---/ver-->
Create python script markright_test.py
with code like:
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-1.0.0.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for markright-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ba40e251e30ade91ca78c3c3819a3b2e22f57ada274c73cecda9a7bd8baebbc |
|
MD5 | 261f56633edee8d922b384f4e349cf27 |
|
BLAKE2b-256 | 48a632698d1072a3cdb05feac768205df42eb984ad0ce978150c40e9f99b75ed |