hooks.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:ISS 作者: RyanJenkins 项目源码 文件源码
def render(self, context):
        catch_outputs = []

        for catch in self.manager.get_catches(self.hook_name):
            template = loader.get_template(catch.template)
            c_ctx = context['_hooks_%s' % self.hook_name][catch._id]
            output = template.render(c_ctx)
            catch_outputs.append(output)

        return ''.join(catch_outputs)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号