aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/inline_raw_files.mdwn
blob: 645ab89b70f81d36513b633147a18477722e9b97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[[!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]]