从相应的json对象烘焙模板
pyjst的Python项目详细描述
#pyjst
bake a template from corresponding json object
在**datas/**中,可以放置扩展名为**.json**的相应数据。这个模块所做的只是用相应的data name.json呈现请求模板
u name.html。输出在**output/**.
例如,让这个文件树:
-example/
-datas/
-example.json
-another.json
-templates/
-example.html
-another.html
进入项目文件夹:`cd example`
然后生成静态页面_示例“pyjst example”或“generate static page”或“pyjst another”完成!
bake a template from corresponding json object
在**datas/**中,可以放置扩展名为**.json**的相应数据。这个模块所做的只是用相应的data name.json呈现请求模板
u name.html。输出在**output/**.
例如,让这个文件树:
-example/
-datas/
-example.json
-another.json
-templates/
-example.html
-another.html
进入项目文件夹:`cd example`
然后生成静态页面_示例“pyjst example”或“generate static page”或“pyjst another”完成!