jinja2-cli:Jinja2的CLI

时间:2021-01-30 19:57:28
【文件属性】:
文件名称:jinja2-cli:Jinja2的CLI
文件大小:10KB
文件格式:ZIP
更新时间:2021-01-30 19:57:28
python cli yaml toml jinja2 $ jinja2 CLI界面到Jinja2 $ jinja2 helloworld.tmpl data.json --format=json $ cat data.json | jinja2 helloworld.tmpl $ curl -s http://httpbin.org/ip | jinja2 helloip.tmpl $ curl -s http://httpbin.org/ip | jinja2 helloip.tmpl > helloip.html 安装 $ pip install jinja2-cli 用法 Usage: jinja2 [options] <input template> <input data> Options: --version show program's version number and exit -h, --help show this help message and exit --format=FORMAT format of input variables
【文件预览】:
jinja2-cli-master
----MANIFEST.in(34B)
----.travis.yml(198B)
----tests()
--------test_jinja2cli.py(702B)
--------__init__.py(0B)
--------files()
----jinja2cli()
--------cli.py(10KB)
--------__init__.py(163B)
----LICENSE(1KB)
----samples()
--------environ.jinja2(298B)
--------sample.jinja2(228B)
--------sample.sh(425B)
--------sample.json(69B)
----setup.cfg(74B)
----setup.py(1KB)
----.gitignore(306B)
----Makefile(178B)
----README.md(1KB)

网友评论