1 [[!meta author="""smcv"""]]
3 [[!meta authorurl="""http://ikiwiki.info/ikiwiki.cgi?page=users%2Fsmcv&do=goto"""]]
5 [[!meta title="""change to todo/auto-create_tag_pages_according_to_a_template todo/autoindex_should_use_add__95__autofile todo/transient_in-memory_pages on ikiwiki"""]]
7 [[!meta permalink="http://ikiwiki.info/recentchanges/#change-9d26a72468fad69d633875b4ffb4aff8abd80023"]]
9 <div id="change-9d26a72468fad69d633875b4ffb4aff8abd80023" class="metadata">
10 <span class="desc"><br />Changed pages:</span>
11 <span class="pagelinks">
13 <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/todo/auto-create_tag_pages_according_to_a_template.mdwn;h=e065c4a3d6646cd4ede0ec96e93bd32d8f4f3a55;hp=676e2bc00dba7a139a1d606da79a46c46104c257;hb=9d26a72468fad69d633875b4ffb4aff8abd80023;hpb=98d0883c8949e6cde8db019bb282d5fa815ffc1a" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=todo%2Fauto-create_tag_pages_according_to_a_template&do=goto" rel="nofollow">todo/auto-create tag pages according to a template</a>
16 <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/todo/autoindex_should_use_add__95__autofile.mdwn;h=64f81c82e3970ea09784097d39be481fd61d16b0;hp=517567e583fb5a9d3489419f6f50c208fcc6bf32;hb=9d26a72468fad69d633875b4ffb4aff8abd80023;hpb=98d0883c8949e6cde8db019bb282d5fa815ffc1a" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=todo%2Fautoindex_should_use_add__95__autofile&do=goto" rel="nofollow">todo/autoindex should use add_autofile</a>
19 <a href="http://git.ikiwiki.info/?p=ikiwiki;a=blobdiff;f=doc/todo/transient_in-memory_pages.mdwn;h=5dbbe4f8271b2d6519363618e1f2b50e8923af33;hp=9808ffdfe476a9ed70e54a7e00748103e21e0f65;hb=9d26a72468fad69d633875b4ffb4aff8abd80023;hpb=98d0883c8949e6cde8db019bb282d5fa815ffc1a" title="diff" rel="nofollow">[[diff|wikiicons/diff.png]]</a><a href="http://ikiwiki.info/ikiwiki.cgi?page=todo%2Ftransient_in-memory_pages&do=goto" rel="nofollow">todo/transient in-memory pages</a>
23 <span class="desc"><br />Changed by:</span>
24 <span class="committer">
26 <a href="http://ikiwiki.info/ikiwiki.cgi?page=users%2Fsmcv&do=goto" rel="nofollow">smcv</a>
29 <span class="desc"><br />Commit type:</span>
30 <span class="committype">git</span>
31 <span class="desc"><br />Date:</span>
32 <span class="changedate"><span class="relativedate" title="Sun, 14 Nov 2010 14:19:46 -0400">14:19:46 11/14/10</span></span>
33 <span class="desc"><br /></span>
37 <a href="http://ikiwiki.info/ikiwiki.cgi?rev=9d26a72468fad69d633875b4ffb4aff8abd80023&do=revert" title="revert" rel="nofollow">[[revert|wikiicons/revert.png]]</a>
40 <div class="changelog">
43 point to my 'transient' branch<br />
50 diff --git a/doc/todo/auto-create_tag_pages_according_to_a_template.mdwn b/doc/todo/auto-create_tag_pages_according_to_a_template.mdwn
51 index 676e2bc..e065c4a 100644
52 --- a/doc/todo/auto-create_tag_pages_according_to_a_template.mdwn
53 +++ b/doc/todo/auto-create_tag_pages_according_to_a_template.mdwn
54 @@ -262,4 +262,6 @@ other pages claim it as an alias. --[[chrysn]]
56 I agree with [[chrysn]]. In fact, is there any good reason that the core tag plugin doesn't do this? The current usability is horrible, to the point that I have gone 2.5 years with Ikiwiki and haven't yet started using tags. -- [[Eric|http://wiki.pdxhub.org/people/eric]]
58 +> See [[todo/transient in-memory pages]] for progress on this. --[[smcv]]
60 [[!tag done]]
61 diff --git a/doc/todo/autoindex_should_use_add__95__autofile.mdwn b/doc/todo/autoindex_should_use_add__95__autofile.mdwn
62 index 517567e..64f81c8 100644
63 --- a/doc/todo/autoindex_should_use_add__95__autofile.mdwn
64 +++ b/doc/todo/autoindex_should_use_add__95__autofile.mdwn
66 `add_autofile` is a generic version of [[plugins/autoindex]]'s code,
67 so the latter should probably use the former. --[[smcv]]
69 +> See [[todo/transient in-memory pages]] for progress on this. --[[smcv]]
70 diff --git a/doc/todo/transient_in-memory_pages.mdwn b/doc/todo/transient_in-memory_pages.mdwn
71 index 9808ffd..5dbbe4f 100644
72 --- a/doc/todo/transient_in-memory_pages.mdwn
73 +++ b/doc/todo/transient_in-memory_pages.mdwn
74 @@ -18,3 +18,26 @@ This would also be useful for autoindex, as suggested on
75 One refinement I'd suggest is that if the transient page is edited,
76 its transient contents are evaluated and used as the initial
77 content for the edit box; after that, it'd become a static page. --[[smcv]]
79 +--------------------------
81 +[[!template id=gitbranch branch=smcv/transient author="[[smcv]]"]]
82 +[[!tag patch]]
84 +I had a look at implementing this. It turns out to be harder than I thought
85 +to have purely in-memory pages (several plugins want to be able to access the
86 +source file as a file), but I did get this proof-of-concept branch
87 +to write tag and autoindex pages into an underlay.
89 +This loses the ability to delete the auto-created pages (although they don't
90 +clutter up git this way, at least), and a lot of the code in autoindex is
91 +probably now redundant, so this is probably not quite ready for merge, but
92 +I'd welcome opinions.
94 +Usage: set `tag_underlay` and/or `autoindex_underlay` to an absolute path,
95 +which you must create beforehand. I suggest *srcdir* + `/.ikiwiki/transient`.
97 +Refinements that could be made if this approach seems reasonable:
99 +* make these options boolean, and have the path always be `.ikiwiki/transient`
100 +* improve the `remove` plugin so it also deletes from this special underlay
105 <!-- 9d26a72468fad69d633875b4ffb4aff8abd80023 -->