tools.py 文件源码

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

项目:harrier 作者: samuelcolvin 项目源码 文件源码
def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        # TODO store the loader or env on the tool factory for faster partial builds
        # (this would need to cope with new files)
        self._loader = FrontMatterFileSystemLoader(self._config.jinja_directories)
        self._env = Environment(loader=self._loader)

        self._env.filters['S'] = self.static_file_filter

        self._file_ctxs = {}
        self._initialise_templates()

        self._ctx = self._config.context
        self._library = self._config.find_library()
        self._library_files = walk(self._library) if self._library else []
        self._extra_files = []
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号