当前位置 博文首页 > Pyramid Mako模板引入helper对象的步骤方法
原理是我们在pyramind的before render event 中插入我们的helper
1. 创建helper.py文件,在里面添加上我们常用的方法
2. 在__init__.py文件中:
加入这个函数: