Add inline_svg
This commit is contained in:
parent
baed59ea39
commit
8b5e2ed41b
18 changed files with 56 additions and 21 deletions
|
|
@ -30,6 +30,8 @@ __version__ = '0.9-dev'
|
|||
if sys.version_info[0] < 3:
|
||||
raise RuntimeError('Python 3 required')
|
||||
|
||||
os.chdir(os.path.dirname(os.path.dirname(__file__)))
|
||||
|
||||
app = Flask(__name__)
|
||||
app.config.from_pyfile('../config.py')
|
||||
|
||||
|
|
@ -60,7 +62,11 @@ def after_request(response):
|
|||
|
||||
@app.context_processor
|
||||
def _inject_variables():
|
||||
return {'site_name': app.config['SITE_NAME'], 'locations': locations}
|
||||
return {
|
||||
'site_name': app.config['SITE_NAME'],
|
||||
'locations': locations,
|
||||
'inline_svg': inline_svg
|
||||
}
|
||||
|
||||
@login_manager.user_loader
|
||||
def _inject_user(userid):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue