aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/write
diff options
context:
space:
mode:
authorbremner <bremner@web>2008-09-13 08:28:52 -0400
committerJoey Hess <joey@kitenet.net>2008-09-13 08:28:52 -0400
commit834489a56a7a3c66f3b2ee898810e12c8b426745 (patch)
treec419d59228f2c2c18d8885fab9d72410c1b8ecb8 /doc/plugins/write
parent97b71834bb99e967490b8b6f40677c248b947333 (diff)
downloadikiwiki-834489a56a7a3c66f3b2ee898810e12c8b426745.tar
ikiwiki-834489a56a7a3c66f3b2ee898810e12c8b426745.tar.gz
share my fumblings in calling IkiWiki::Setup
Diffstat (limited to 'doc/plugins/write')
-rw-r--r--doc/plugins/write/discussion.mdwn10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/plugins/write/discussion.mdwn b/doc/plugins/write/discussion.mdwn
new file mode 100644
index 000000000..50fbab1ef
--- /dev/null
+++ b/doc/plugins/write/discussion.mdwn
@@ -0,0 +1,10 @@
+Maybe this is obvious, but the config variable lives in the IkiWiki module, and one probably
+wants to call defaultconfig for most applications.
+<pre>
+%IkiWiki::config=IkiWiki::defaultconfig();
+IkiWiki::Setup::load($config_file);
+print join(",",keys %IkiWiki::config);
+</pre>
+
+[[DavidBremner]]
+