]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
(no commit message)
authorbremner <bremner@web>
Sat, 1 Jan 2011 18:26:26 +0000 (18:26 +0000)
committerJoey Hess <joey@kitenet.net>
Sat, 1 Jan 2011 18:26:26 +0000 (18:26 +0000)
doc/todo/support_includes_in_setup_files.mdwn [new file with mode: 0644]

diff --git a/doc/todo/support_includes_in_setup_files.mdwn b/doc/todo/support_includes_in_setup_files.mdwn
new file mode 100644 (file)
index 0000000..50afb2b
--- /dev/null
@@ -0,0 +1,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