]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/inline_raw_files.mdwn
645ab89b70f81d36513b633147a18477722e9b97
[ikiwiki.git] / doc / todo / inline_raw_files.mdwn
1 [[!template id=gitbranch branch=wtk/master author="[[wtk]]"]]
2
3 summary
4 =======
5
6 Extend inlining to handle raw files (files with unrecognized extensions).
7
8 Also raise an error in `IkiWiki::pagetype($file)` if `$file` is blank, which avoids trying to do much with missing files, etc.
9
10 I'm using the new code in my [blog][].
11
12 [blog]: http://www.physics.drexel.edu/~wking/unfolding-disasters/posts/yacc2dot/
13
14 usage
15 =====
16
17     \[[!inline pagenames="somefile.txt" template="raw" feeds="no"]]
18
19
20 > But inline already supports raw files in two ways:
21
22 > * setting raw=yes will cause a page to be inlined raw without
23 >   using any template, as if it were part of the page at the location
24 >   of the inline
25 > * otherwise, the file becomes an enclosure in the rss feed, for use with
26 >    podcasting.
27
28 > So I don't see the point of your patch. Although since your text
29 > editor seems to like to make lots of whitespace changes, it's possible
30 > I missed something in the large quantity of noise introduced by it.
31 > --[[Joey]]