ikiwiki/doc/plugins/getsource.mdwn

15 lines
544 B
Plaintext
Raw Permalink Normal View History

2009-08-01 13:31:34 +02:00
[[!template id=plugin name=getsource author="[[Will_Uther|Will]]"]]
2010-02-12 09:47:21 +01:00
[[!tag type/web]]
2009-08-01 13:31:34 +02:00
2009-08-08 18:32:39 +02:00
This plugin adds a "Source" link to the top of each page that uses
the CGI to display the page's source.
2009-08-01 13:31:34 +02:00
Configuration for this plugin in the setup file:
* `getsource_mimetype => "text/plain; charset=utf-8"`
Sets the MIME type used when page source is requested. The default is
usually appropriate, but you could set this to `application/octet-stream`
to encourage browsers to download the source to a file rather than showing
it in the browser.