web.py的模板使用非常容易,但有时候我们需要做目录层级以便管理。那么如何使用目录层级的模板呢?
通常我们使用模板的时候先声明模板文件夹
render=web.template.render('templates')
return render.index()
return render.list()
return render.admin.index()
return render.admin.login()
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分 风车动漫