seitime-frappe/webnotes/templates/pages/app.py
Anand Doshi ffe082d7a9 Response to a Website Page Request would be json content if ajax else full page html
Related to (#421):
Fixed base template
Blog, Blog Post, Login, App pages
Started with porting Unit Template to Website Group Template
2014-02-03 11:35:18 +05:30

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"]
}