Generate documents according to the template.
Project description
使用方法见 test.py
from template import DocumentTemplate if __name__ == '__main__': id_dict = {"title": "标题", "head": "正文标题", "url": "https://github.com/liying2008", "large_font": "大号字体"} id_dict['show_span'] = True # id_dict['contents'] = 'Hello World' id_dict['contents'] = ('A', 'B', 'C', 'D', 'E', 'F', 'G') temp = DocumentTemplate() temp.load("test.html") temp.set_identifier_dict(id_dict) temp.save_document("new_test.html")
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
Built Distribution
Close
Hashes for document_template-0.0.1-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dd11e26c58683479735835b7d3a5fbeb24471f68ea8f9cdd4b6ec02a101fa45 |
|
MD5 | 9229284c5d6240589ca8459144516fa3 |
|
BLAKE2b-256 | 5891769abcf2dfd5788e3886b276206ce6f28fd4e5cbbf270df2d5525ee974f9 |