blob: 645ab89b70f81d36513b633147a18477722e9b97 (
plain)
[[!template id=gitbranch branch=wtk/master author="[[wtk]]"]]
summary
Extend inlining to handle raw files (files with unrecognized extensions).
Also raise an error in IkiWiki::pagetype($file) if $file is blank, which avoids trying to do much with missing files, etc.
I'm using the new code in my blog.
usage
\[[!inline pagenames="somefile.txt" template="raw" feeds="no"]]
But inline already supports raw files in two ways:
- setting raw=yes will cause a page to be inlined raw without
using any template, as if it were part of the page at the location
of the inline
- otherwise, the file becomes an enclosure in the rss feed, for use with
podcasting.
So I don't see the point of your patch. Although since your text
editor seems to like to make lots of whitespace changes, it's possible
I missed something in the large quantity of noise introduced by it.
--[[Joey]]
|