point to my 'transient' branch
authorSimon McVittie <smcv@debian.org>
Sun, 14 Nov 2010 18:19:46 +0000 (18:19 +0000)
committerSimon McVittie <smcv@debian.org>
Sun, 14 Nov 2010 18:19:46 +0000 (18:19 +0000)
doc/todo/auto-create_tag_pages_according_to_a_template.mdwn
doc/todo/autoindex_should_use_add__95__autofile.mdwn
doc/todo/transient_in-memory_pages.mdwn

index 676e2bc00dba7a139a1d606da79a46c46104c257..e065c4a3d6646cd4ede0ec96e93bd32d8f4f3a55 100644 (file)
@@ -262,4 +262,6 @@ other pages claim it as an alias. --[[chrysn]]
 
 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]]
 
+> See [[todo/transient in-memory pages]] for progress on this. --[[smcv]]
+
 [[!tag done]]
index 517567e583fb5a9d3489419f6f50c208fcc6bf32..64f81c82e3970ea09784097d39be481fd61d16b0 100644 (file)
@@ -1,2 +1,4 @@
 `add_autofile` is a generic version of [[plugins/autoindex]]'s code,
 so the latter should probably use the former. --[[smcv]]
+
+> See [[todo/transient in-memory pages]] for progress on this. --[[smcv]]
index 9808ffdfe476a9ed70e54a7e00748103e21e0f65..5dbbe4f8271b2d6519363618e1f2b50e8923af33 100644 (file)
@@ -18,3 +18,26 @@ This would also be useful for autoindex, as suggested on
 One refinement I'd suggest is that if the transient page is edited,
 its transient contents are evaluated and used as the initial
 content for the edit box; after that, it'd become a static page. --[[smcv]]
+
+--------------------------
+
+[[!template id=gitbranch branch=smcv/transient author="[[smcv]]"]]
+[[!tag patch]]
+
+I had a look at implementing this. It turns out to be harder than I thought
+to have purely in-memory pages (several plugins want to be able to access the
+source file as a file), but I did get this proof-of-concept branch
+to write tag and autoindex pages into an underlay.
+
+This loses the ability to delete the auto-created pages (although they don't
+clutter up git this way, at least), and a lot of the code in autoindex is
+probably now redundant, so this is probably not quite ready for merge, but
+I'd welcome opinions.
+
+Usage: set `tag_underlay` and/or `autoindex_underlay` to an absolute path,
+which you must create beforehand. I suggest *srcdir* + `/.ikiwiki/transient`.
+
+Refinements that could be made if this approach seems reasonable:
+
+* make these options boolean, and have the path always be `.ikiwiki/transient`
+* improve the `remove` plugin so it also deletes from this special underlay