Implement Will's suggestion

master
Simon McVittie 2009-07-27 12:03:11 +01:00
parent 9a714e5f44
commit 7922eae327
1 changed files with 3 additions and 1 deletions

View File

@ -9,7 +9,7 @@ I just implemented this. There is one [[patch]] to the default page template, a
> by loading the index with IkiWiki::loadindex, like [[plugins/goto]] does?
> --[[smcv]]
[[!template id=gitbranch branch=smcv/getsource
[[!template id=gitbranch branch=smcv/ready/getsource
author="[[Will]]/[[smcv]]"]]
>> I've applied the patch below in a git branch, fixed my earlier criticism,
@ -27,6 +27,8 @@ I just implemented this. There is one [[patch]] to the default page template, a
>>> That looks like a nice set of fixes. One more that might be worthwhile: instead of reading the page source into a var, and then writing it out later, it might be nice to just
>>> `print readfile(srcfile(pagesources{$page}));` at the appropriate point. -- [[Will]]
>>>> OK, I've committed that. --[[smcv]]
----
diff --git a/templates/page.tmpl b/templates/page.tmpl