]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/plugins/write.mdwn
Add genwrapper hook, that can be used to add code into the C wrapper.
[ikiwiki.git] / doc / plugins / write.mdwn
index 3976f9adf5a74b504b66efa8478e4d0acc2ebd6e..668f8d8b69dff65acc0727fa5fa3233e516b132a 100644 (file)
@@ -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: