blob: 50afb2b6b78f4c412af23ec2f783f668fe7f67d4 (
plain)
1
2
3
4
5
6
7
8
9
10
|
I have a client server setup so I can I edit/preview on my laptop/desktop and push to a server. I therefore have two almost identical setup files that reasonably often I let get out of sync. I'd like to be able into include the common parts into the two setup files. Currently the following works, but it relies on knowing the implementation of IkiWiki::Setup::Standard
use IkiWiki::Setup::Standard { specific stuff };
require "/path/to/common_setup";
where common_setup contains a call to IkiWiki::Setup::merge
To see that this is fragile, note that the require must come second, or ikiwiki will try to load a module called IkiWiki::Setup::merge
DavidBremner
|