More minor changes for removing extensions.

This commit is contained in:
Paul J. Davis 2010-02-19 14:28:36 -05:00
parent 02a2717d40
commit 0068595011
3 changed files with 6 additions and 2 deletions

View File

@ -79,8 +79,8 @@ class Page(object):
converter = getattr(self, "convert_%s" % oldext, lambda x: x)
self.body = converter(body)
newfn = "%s.%s" % (basename, self.headers.get('ext', 'html'))
self.target = os.path.join(tgt_path, newfn)
newext = self.headers.get('ext', '.html')
self.target = os.path.join(tgt_path, "%s%s" % (basename, newext))
def url(self):
path = self.target.split(conf.OUTPUT_PATH)[1].lstrip('/')

View File

@ -0,0 +1,2 @@
ext:

View File

@ -1 +1,3 @@
ext:
gunicorn.org