Bläddra i källkod

.fcgi -> .py

pull/24/head
Ben Kurtovic 11 år sedan
förälder
incheckning
de46767d63
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +1
    -1
      build.py
  2. +2
    -2
      pages/support/header.mako

+ 1
- 1
build.py Visa fil

@@ -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)


+ 2
- 2
pages/support/header.mako Visa fil

@@ -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]
%>\
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">


Laddar…
Avbryt
Spara