mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
More minor changes for removing extensions.
This commit is contained in:
parent
02a2717d40
commit
0068595011
@ -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('/')
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
ext:
|
||||
|
||||
@ -1 +1,3 @@
|
||||
ext:
|
||||
|
||||
gunicorn.org
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user