Related to (#421): Fixed base template Blog, Blog Post, Login, App pages Started with porting Unit Template to Website Group Template
18 lines
No EOL
504 B
Python
18 lines
No EOL
504 B
Python
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
|
|
# MIT License. See license.txt
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
no_sitemap = 1
|
|
base_template_path = "templates/pages/app.html"
|
|
|
|
import webnotes, os
|
|
|
|
def get_context(context):
|
|
hooks = webnotes.get_hooks()
|
|
return {
|
|
"build_version": str(os.path.getmtime(os.path.join(webnotes.local.sites_path, "assets", "js",
|
|
"webnotes.min.js"))),
|
|
"include_js": hooks["app_include_js"],
|
|
"include_css": hooks["app_include_css"]
|
|
} |