32 lines
1016 B
Markdown
32 lines
1016 B
Markdown
[[!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][].
|
|
|
|
[blog]: http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/yacc2dot/
|
|
|
|
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]]
|