]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/getsource.mdwn
fix name
[ikiwiki.git] / doc / plugins / getsource.mdwn
1 [[!template id=plugin name=getsource author="[[Will_Uther|Will]]"]]
2
3 This plugin adds a "Source" link to the top of each page that uses
4 the CGI to display the page's source.
5
6 Configuration for this plugin in the setup file:
7
8 * `getsource_mimetype => "text/plain; charset=utf-8"`
9
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.