aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/write.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-09-10 14:04:46 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-09-10 14:04:46 -0400
commit3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8 (patch)
tree0f6ef27852b074284cffcbe009ce4eb0f0a0c13c /doc/plugins/write.mdwn
parent98ed7cb1d7f99790821b99b3779d6685114fa662 (diff)
downloadikiwiki-3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8.tar
ikiwiki-3ebd4e0b45a8a6bd4c12604a3bb683dcb3a60eb8.tar.gz
Add genwrapper hook, that can be used to add code into the C wrapper.
Diffstat (limited to 'doc/plugins/write.mdwn')
-rw-r--r--doc/plugins/write.mdwn7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn
index 3976f9adf..668f8d8b6 100644
--- a/doc/plugins/write.mdwn
+++ b/doc/plugins/write.mdwn
@@ -496,6 +496,13 @@ describes the plugin as a whole. For example:
and undef if a rebuild could be needed in some circumstances, but is not
strictly required.
+### genwrapper
+
+ hook(type => "genwrapper", id => "foo", call => \&genwrapper);
+
+This hook is used to inject C code (which it returns) into the `main`
+function of the ikiwiki wrapper when it is being generated.
+
## Plugin interface
To import the ikiwiki plugin interface: