Files
postgres-web/pgweb/core/struct.py
2010-09-29 14:40:28 +02:00

15 lines
363 B
Python

import os
from datetime import datetime
def get_struct():
yield ('', None)
yield ('community/', 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)