]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/getsource.mdwn
4fbf4be9887195301c7192948ccb7a52c14270ba
[git.ikiwiki.info.git] / doc / plugins / getsource.mdwn
1 [[!template id=plugin name=getsource author="[[Will_Uther|Will]]"]]
3 This plugin adds a `getsource` action to the IkiWiki CGI, and a "Source" link
4 that uses it to display pages' source.
6 Configuration for this plugin in the setup file:
8 * `getsource_mimetype => "text/plain; charset=utf-8"`
10   Sets the MIME type used when page source is requested. The default is
11   usually appropriate, but you could set this to `application/octet-stream`
12   to encourage browsers to download the source to a file rather than showing
13   it in the browser.