X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/0c481bce6e828613406838bc68ed0958459f6a8c..e4de043201d82cce8d3b2b5882a61e17e69e3cb0:/doc/todo/pagespec_relative_to_a_target.mdwn diff --git a/doc/todo/pagespec_relative_to_a_target.mdwn b/doc/todo/pagespec_relative_to_a_target.mdwn index e92988c3e..f7b248670 100644 --- a/doc/todo/pagespec_relative_to_a_target.mdwn +++ b/doc/todo/pagespec_relative_to_a_target.mdwn @@ -30,9 +30,9 @@ Note that if you try to inline `*/blah` you will match `foo/blah`, themselves rather than any relatives of theirs. This patch is useful for (among other things) constructing blogging -systems where leaf nodes are organized hierarchically; using has_child, +systems where leaf nodes are organized hierarchically; using `has_child`, you can inline only leaf nodes and ignore "intermediate" nodes. -match_relative can be used recursively to match properties of arbitrary +`match_relative` can be used recursively to match properties of arbitrary complexity: "show me all the pages who have children called foo that have children called blah". I'm not sure what use it is, though. @@ -86,4 +86,12 @@ diff -urNX ignorepats ikiwiki/IkiWiki/Plugin/relative.pm ikidev/IkiWiki/Plugin/r +} #}}} + +1 - \ No newline at end of file + + +[[!tag patch]] + +> This looks really interesting. It reminds me of XPath and its conditionals. +> Those might actually work well adapted to pagespecs. For instance, to write +> "match any page with a child blah", you could just write *[blah] , or if you +> don't want to use relative-by-default in the conditionals, *[./blah]. +> -- [[JoshTriplett]]