]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - doc/plugins/getsource.mdwn
ikiwiki (3.20130711) unstable; urgency=low
[git.ikiwiki.info.git] / doc / plugins / getsource.mdwn
1 [[!template id=plugin name=getsource author="[[Will_Uther|Will]]"]]
2 [[!tag type/web]]
4 This plugin adds a "Source" link to the top of each page that uses
5 the CGI to display the page's source.
7 Configuration for this plugin in the setup file:
9 * `getsource_mimetype => "text/plain; charset=utf-8"`
11   Sets the MIME type used when page source is requested. The default is
12   usually appropriate, but you could set this to `application/octet-stream`
13   to encourage browsers to download the source to a file rather than showing
14   it in the browser.