Show static
This commit is contained in:
1 parent
bf5bd6f4ab
commit
b4fcd4c7bc
1 file changed
+2
-2
@@ -54,9 +54,9 @@ class Plugin(object):
|
|||||||
for f in glob.glob(os.path.join(self.plugin_path, 'static', '*')):
|
for f in glob.glob(os.path.join(self.plugin_path, 'static', '*')):
|
||||||
fireEvent('register_%s' % ('script' if getExt(f) in 'js' else 'style'), path + os.path.basename(f))
|
fireEvent('register_%s' % ('script' if getExt(f) in 'js' else 'style'), path + os.path.basename(f))
|
||||||
|
|
||||||
def showStatic(self, f = ''):
|
def showStatic(self, file = ''):
|
||||||
d = os.path.join(self.plugin_path, 'static')
|
d = os.path.join(self.plugin_path, 'static')
|
||||||
return send_from_directory(d, f)
|
return send_from_directory(d, file)
|
||||||
|
|
||||||
def createFile(self, path, content):
|
def createFile(self, path, content):
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user