You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

18 lines
504 B

  1. # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
  2. # MIT License. See license.txt
  3. from __future__ import unicode_literals
  4. no_sitemap = 1
  5. base_template_path = "templates/pages/app.html"
  6. import webnotes, os
  7. def get_context(context):
  8. hooks = webnotes.get_hooks()
  9. return {
  10. "build_version": str(os.path.getmtime(os.path.join(webnotes.local.sites_path, "assets", "js",
  11. "webnotes.min.js"))),
  12. "include_js": hooks["app_include_js"],
  13. "include_css": hooks["app_include_css"]
  14. }