Created
April 25, 2018 06:17
-
-
Save easyforgood/18d8f1efd03482fda272bb6e6c99a847 to your computer and use it in GitHub Desktop.
Jinja 的路径导入
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jinja2 import Environment, FileSystemLoader | |
import os | |
env = Environment(loader=FileSystemLoader( | |
os.path.join(os.path.split(os.path.realpath(__file__))[0], "."))) | |
template = env.get_template("template.html") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment