Hi,
I'm trying to setup a development environment to hack on the comments plugin and I'm having problems getting my Ikiwiki CGI to use my git checkout as the libdir and templatedir instead of the system one.
My .setup contains:
srcdir => '/home/francois/wiki/testblog',
destdir => '/var/www/testblog',
url => 'http://localhost/testblog',
cgiurl => 'http://localhost/testblog/ikiwiki.cgi',
cgi_wrapper => '/var/www/testblog/ikiwiki.cgi',
templatedir => '/home/francois/devel/remote/ikiwiki/templates',
underlaydir => '/home/francois/devel/remote/ikiwiki/doc',
libdir => '/home/francois/devel/remote/ikiwiki',
ENV => {},
git_wrapper => '/home/francois/wiki/testblog.git/hooks/post-update',
Now, if I modify ~/devel/remote/ikiwiki/templates/comment.tmpl, my changes don't appear when I add a comment to a blog post. On the other hand, if I hack /usr/share/ikiwiki/templates/comment.tmpl and cause the page to be rebuilt by adding a new comment then that does have an effect.
The same is true for ~/devel/remote/ikiwiki/Ikiwiki/Plugin/comments.pm (doesn't appear to be used) and /usr/share/perl5/Ikiwiki/Plugin/comments.pm (my hacks affect pages as they are recompiled).
I must be missing something obvious, but the [[ikiwiki development environment tips]] didn't help me...
Cheers,
[[Francois|fmarier]]
I updated the [[ikiwiki development environment tips]] page with my
approach to running ikiwiki from the git checkout (with changes). For
the templates, also make sure that you do not have custom templates in
your src dir as they will be used instead of those from the template
dir if found. --GB