方便从pyratemp模板和json或yaml var文件呈现文本文件
ptrender的Python项目详细描述
方便从pyratemp模板和json或yaml var文件呈现文本文件
有关模板语法,请参见pyratemp。在
P渲染器
ptrender 0.0.3 Use json or yaml var_files to render template_file to an adjacent file with the same name but the extension stripped Usage: ptrender [SWITCHES] template_file var_files... Meta-switches: -h, --help Prints this help message and quits --help-all Prints help messages of all sub-commands and quits -v, --version Prints the program's version and quits Switches: -f, --force Overwrite any existing destination file
vwrite公司
^{pr2}$安装
pip install ptrender
对于yaml支持:
pip install 'ptrender[yaml]'
- 项目
标签: