[svn] jinja webpage without annyoing .html suffixes now
--HG--
branch : trunk
diff --git a/docs/generate.py b/docs/generate.py
index 9ae42f4..76e027c 100755
--- a/docs/generate.py
+++ b/docs/generate.py
@@ -258,7 +258,8 @@
now = datetime.now()
title = os.path.basename(filename)[:-4]
content = fp.read()
- parts = generate_documentation(content, (lambda x: './%s.html' % x))
+ suffix = not preproc and '.html' or ''
+ parts = generate_documentation(content, (lambda x: './%s%s' % (x, suffix)))
result = file(os.path.join(dst, title + '.html'), 'w')
c = dict(parts)
c['style'] = PYGMENTS_FORMATTER.get_style_defs('.syntax')