From de46767d6393742c3e8b0c3d5500829a2da0cecc Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 25 Aug 2013 23:52:06 -0400 Subject: [PATCH] .fcgi -> .py --- build.py | 2 +- pages/support/header.mako | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index 6d06467..4ff74fa 100755 --- a/build.py +++ b/build.py @@ -69,7 +69,7 @@ class Builder(object): logger = base.getChild(page.rsplit(".", 1)[0]) self._pages.append(page.rsplit(".", 1)[0]) src = os.path.join(self.pages_dir, page) - dest = os.path.join(self.build_dir, page.replace(".mako", ".fcgi")) + dest = os.path.join(self.build_dir, page.replace(".mako", ".py")) logger.debug("build {0} -> {1}".format(src, dest)) content = page_src.replace("{{src}}", src) diff --git a/pages/support/header.mako b/pages/support/header.mako index 01ded9a..67775a1 100644 --- a/pages/support/header.mako +++ b/pages/support/header.mako @@ -9,8 +9,8 @@ pretty = path.split(root)[0] if not slug: slug = path.split(this)[1] - if slug.endswith(".fcgi"): - slug = slug[:-5] + if slug.endswith(".py"): + slug = slug[:-3] %>\