X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/6478112f05f1b1cdbbc482d9d6016bd87d75a5e5..f00ccd0bf65e2a8d3d0ff4a3960e32c7aeba835a:/doc/bugs/wrong_rendering_of_templatebody.mdwn diff --git a/doc/bugs/wrong_rendering_of_templatebody.mdwn b/doc/bugs/wrong_rendering_of_templatebody.mdwn index c4c04bee4..93a687ab8 100644 --- a/doc/bugs/wrong_rendering_of_templatebody.mdwn +++ b/doc/bugs/wrong_rendering_of_templatebody.mdwn @@ -18,6 +18,13 @@ of my templates renders as the *rest* of the template page when used, instead of the body part. In other words, it renders exactly the part it should hide (the description) and ignores the body itself (which is inside \[[!templatebody]]). +> With a hint from [[kjs]] on [[templates/discussion]], I was able to reproduce +> this bug. It seems to have been caused by an optimization: please try applying +> [commit 5fd863b5](http://source.ikiwiki.branchable.com/?p=source.git;a=commitdiff;h=5fd863b5b05449669ec56c6798d836e3302386e2) +> to your Render.pm. I'll try to work out a way to have the optimization +> without the correctness impact, but for now, reverting the optimization, +> which I have [[done]], seems like the way forward. --[[smcv]] + When I manually re-generate the wiki, it suddenly renders right. As soon as the page gets rebuilt automatically after some git push, it renders the wrong way. @@ -35,6 +42,30 @@ page gets rebuilt automatically after some git push, it renders the wrong way. > early stage - I would suggest `getsetup()`, `refresh()` and `import()` > respectively. --[[smcv]] +>> Yes, I installed in `/usr/local`, but I also removed the deb package. So I +>> only have 1 ikiwiki version now. +>> +>> I also noticed the following behavior. I created a set of pages, each of them +>> containing several occurences of a certain template. Then I created another +>> page, which inlines all of them. All good. Then, I edited that main page to do +>> different sorting (using inline directive's sort option). After comitting the change, +>> suddenly all the inlined pages have the templates inside them contain the +>> template info instead of template body. How is that even related to the minor +>> change I did - change the sorting? :-P +>> +>> I'll look at the templatebody.pm file and try debug prints. I hope I can see them in +>> the git push output, because rendering the wiki from command line doesn't have this +>> problem. +>> +>> One more thing, my setup uses the pingee plugin. When doing a git push, it browses to +>> the wiki page using wget with `?do=ping` parameter, and then ikiwiki responds by rebuilding +>> the necessary pages. +>> +>> Thanks for the pointers. +>> +>> --[[fr33domlover]] + + [[This|http://www.rel4tion.org/languages/haskell/]] is the page, and [[this|http://www.rel4tion.org/templates/wikitag/]] is a template it uses. Right now the template is rendered on that page exactly like the template page itself.