Explorar o código

Add task for splitting the templates

oz123 %!s(int64=10) %!d(string=hai) anos
pai
achega
28f58dbed3
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      scripts/webui.py

+ 6 - 0
scripts/webui.py

@@ -23,6 +23,12 @@ from pwman.util.crypto import CryptoEngine
 import pwman.data.factory
 from pwman.data.tags import TagNew
 from pwman import parser_options, get_conf_options
+from pkg_resources import Requirement, resource_filename
+
+
+# TODO: split template info and put it in data file:
+# access them with
+filename = resource_filename("pwman","htmlfiles/index.html")
 
 AUTHENTICATED = False
 TAGS = None