jinja2的cli接口
jinja2-cli的Python项目详细描述
$ 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
jinja2的cli接口
$ 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