diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-02-19 18:38:45 -0500 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-02-19 18:38:45 -0500 |
commit | 66dc253437e7ce2e3e8984513b3ecf96603d6670 (patch) | |
tree | 8f45fb353322833217101c0239ecaf3330d7c53e /doc/plugins | |
parent | 9ecb0036a32c6930d9400040161c3b9e41ef9b1f (diff) | |
download | ikiwiki-66dc253437e7ce2e3e8984513b3ecf96603d6670.tar ikiwiki-66dc253437e7ce2e3e8984513b3ecf96603d6670.tar.gz |
Add noextension parameter to htmlize hooks to support, eg, Makefile.
Diffstat (limited to 'doc/plugins')
-rw-r--r-- | doc/plugins/write.mdwn | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/doc/plugins/write.mdwn b/doc/plugins/write.mdwn index 2e907938f..696bc6bc3 100644 --- a/doc/plugins/write.mdwn +++ b/doc/plugins/write.mdwn @@ -189,9 +189,14 @@ The function is passed named parameters: "page" and "content" and should return the htmlized content. If `hook` is passed an optional "keepextension" parameter, set to a true -value, then this extension will not be stripped from the source filename when +value, then the extension will not be stripped from the source filename when generating the page. +If `hook` is passed an optional "noextension" parameter, set to a true +value, then the id parameter specifies not a filename extension, but +a whole filename that can be htmlized. This is useful for files +like `Makefile` that have no extension. + ### pagetemplate hook(type => "pagetemplate", id => "foo", call => \&pagetemplate); |