Files
postgres-web/pgweb/core/struct.py
Magnus Hagander 756aa6ffbe Clean up imports
Remove unused imports and some other completely unused code.
2014-01-01 15:42:30 +01:00

15 lines
369 B
Python

import os
def get_struct():
yield ('', None)
yield ('community/', None)
yield ('support/versioning', None)
# Enumerate all the templates that will generate pages
for root, dirs, files in os.walk('../templates/pages'):
r=root[19:] # Cut out ../templates/pages
for f in files:
if f.endswith('.html'):
yield (os.path.join(r, f)[:-5] + "/",
None)