Extend inlining to handle raw files (files with unrecognized extensions).
authorW. Trevor King <wking@drexel.edu>
Tue, 5 Oct 2010 12:34:16 +0000 (08:34 -0400)
committerW. Trevor King <wking@drexel.edu>
Tue, 5 Oct 2010 12:34:16 +0000 (08:34 -0400)
commit157389355d01224b2d3c3f6e4c1eb42a20ec8a90
tree966efaa9e7ecd8cfb58560c2a9368ef06a1eb7b0
parentee54269949403a357802aa7fbea992378bb342f9
Extend inlining to handle raw files (files with unrecognized extensions).

Example usage:
  [[!inline pagenames="somefile.txt" template="raw" feeds="no"]]

Also raise an error in IkiWiki::pagetype($file) if $file is blank,
which avoids trying to do much with missing files, etc.
IkiWiki.pm
IkiWiki/Plugin/inline.pm
t/pagetype.t [new file with mode: 0755]
templates/raw.tmpl [new file with mode: 0644]