소스 검색

.fcgi -> .py

pull/24/head
Ben Kurtovic 11 년 전
부모
커밋
de46767d63
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +1
    -1
      build.py
  2. +2
    -2
      pages/support/header.mako

+ 1
- 1
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)


+ 2
- 2
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]
%>\
<!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">


불러오는 중...
취소
저장