environment.py 文件源码

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

项目:infinite-lorem-ipsum 作者: patjm1992 项目源码 文件源码
def new_context(self, vars=None, shared=False, locals=None):
        """Create a new :class:`Context` for this template.  The vars
        provided will be passed to the template.  Per default the globals
        are added to the context.  If shared is set to `True` the data
        is passed as it to the context without adding the globals.

        `locals` can be a dict of local variables for internal usage.
        """
        return new_context(self.environment, self.name, self.blocks,
                           vars, shared, self.globals, locals)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号