From 40fb165b5393b79f8633973eb89d26087b49fb2e Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sat, 25 May 2013 11:10:14 -0400 Subject: [PATCH] Added html_pre_index var for templates --- repo2html | 2 +- tpl/index | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/repo2html b/repo2html index 285fb38..7d22649 100755 --- a/repo2html +++ b/repo2html @@ -134,7 +134,7 @@ msgfmt="${msgfmt:-./msgfmt}" # make configuration available to all scripts export title desc copyright license msgfmt url_root path_tpl path path_root \ html_external_css html_footer html_index_footer html_commit_footer \ - html_ext + html_ext html_pre_index # clear the cachefile (TODO: we could maintain cache files from previous runs if # we offer a flag that opts out of reprocessing previously processed commits) diff --git a/tpl/index b/tpl/index index eb3920b..57d7f36 100755 --- a/tpl/index +++ b/tpl/index @@ -17,6 +17,7 @@ cat <$title

$desc

+ $html_pre_index EOH # generate index and populate statistical vars