Compare commits
No commits in common. "351e9eec9c20c6141ffda1d4d381789b087ff9e8" and "927c47f2962e2d917e12ad000fabddacaf65c629" have entirely different histories.
351e9eec9c
...
927c47f296
@ -63,27 +63,6 @@ class ConfiguredServer:
|
||||
load_plugins(self.workdir)
|
||||
g = ServerEnv()
|
||||
g.workdir = workdir
|
||||
g.cssfiles = self.get_css_files
|
||||
g.jsfiles = self.get_js_files
|
||||
|
||||
def get_fieltype_files(self, suffix):
|
||||
paths = self.config.website.paths
|
||||
fs = []
|
||||
for p, part in paths:
|
||||
pos = len(p)
|
||||
fs += [f[pos:] for f in listFile(p, suffixs=[suffix])]
|
||||
if part == '':
|
||||
subpaths = listFolder(p)
|
||||
for sp in subpaths:
|
||||
if not sp.endswith('bricks'):
|
||||
fs += [f[pos:] for f in listFile(sp, suffixs=[suffix])]
|
||||
return fs
|
||||
|
||||
def get_css_files(self):
|
||||
return self.get_filetype_files('.css')
|
||||
|
||||
def get_js_files(self):
|
||||
return self.get_filetype_files('.js')
|
||||
|
||||
async def build_app(self):
|
||||
rf = RegisterFunction()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user