mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-09 03:54:08 +00:00
15 lines
369 B
Python
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)
|