summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorbremner <bremner@web>2011-01-01 18:26:26 +0000
committerJoey Hess <joey@kitenet.net>2011-01-01 18:26:26 +0000
commita87e7dd80c9d25c1c06b9afc9cdf13386d61a30c (patch)
tree4ae6c8359f4df29bcf17f80212a05ba6d76825b4 /doc
parentf4280128a1afd46c89a424fff698010b9dbef7b7 (diff)
Diffstat (limited to 'doc')
-rw-r--r--doc/todo/support_includes_in_setup_files.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/todo/support_includes_in_setup_files.mdwn b/doc/todo/support_includes_in_setup_files.mdwn
new file mode 100644
index 000000000..50afb2b6b
--- /dev/null
+++ b/doc/todo/support_includes_in_setup_files.mdwn
@@ -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