aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorspalax <spalax@web>2014-11-22 15:09:58 -0400
committeradmin <admin@branchable.com>2014-11-22 15:09:58 -0400
commit2423808fdfdd987068f929e11c880525041c3d1c (patch)
treeb4dbab2cd894f738b1bfe45ffabe52da3f129c63 /doc
parent5bfd0d46386324131e3f07131a73a5826d7f33aa (diff)
downloadikiwiki-2423808fdfdd987068f929e11c880525041c3d1c.tar
ikiwiki-2423808fdfdd987068f929e11c880525041c3d1c.tar.gz
Thoughts about several libdirs
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/support_multiple_perl_libraries.mdwn11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/todo/support_multiple_perl_libraries.mdwn b/doc/todo/support_multiple_perl_libraries.mdwn
index 2869b5033..b71780f98 100644
--- a/doc/todo/support_multiple_perl_libraries.mdwn
+++ b/doc/todo/support_multiple_perl_libraries.mdwn
@@ -8,4 +8,15 @@ I think the change is a one-liner, but I put this here for discussion before att
[[DavidBremner]]
+> I would like this feature too, for the very same reasons.
+>
+> To preserve backward compatibility, I tried to implement it in the following way: if `libdir` is a string, it is (as it is right now), a directory in which plugins can be searched; if `libdir` is an array of strings, it is a list of libdirs. The ideal place to put it in would be in subroutine [checkconfig](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=IkiWiki.pm;hb=56f8223f9594ae687099dada0c138d669a6f931f#l569). However, plugins are loaded (and option `libdir` is used) in subroutine [loadplugins](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=IkiWiki.pm;hb=56f8223f9594ae687099dada0c138d669a6f931f#l713), which is called [just before `checkconfig`](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=ikiwiki.in;hb=729991564ec7e1116fc023c51e73b47af8b6fce7#l143).
+>
+> A solution would be to check `libdir` (and turn it into a list if necessary) somewhere in subroutine [getconfig](http://source.ikiwiki.branchable.com/?p=source.git;a=blob;f=ikiwiki.in;hb=729991564ec7e1116fc023c51e73b47af8b6fce7#l26), but I do not know where to put it not to make it look like a bad hackā€¦
+>
+> Any idea about the best place to preprocess `libdir`? Or any better idea to implement this?
+>
+> [[Louis|spalax]]
+
+
[[!taglink wishlist]]