aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs
diff options
context:
space:
mode:
authorhttp://smcv.pseudorandom.co.uk/ <smcv@web>2014-03-08 10:10:12 -0400
committeradmin <admin@branchable.com>2014-03-08 10:10:12 -0400
commit9d3cfbf7712b8d030347e04410652ab9dd01c984 (patch)
treec1f6ce73a97373575443f126b2e3681e5a3b678a /doc/bugs
parent22fbf7299baf6c6af1b2060c7f4afbee8f6c2819 (diff)
downloadikiwiki-9d3cfbf7712b8d030347e04410652ab9dd01c984.tar
ikiwiki-9d3cfbf7712b8d030347e04410652ab9dd01c984.tar.gz
explain the cycle that is broken by "map and inline can't generate wikilinks"
Diffstat (limited to 'doc/bugs')
-rw-r--r--doc/bugs/listdirectives_doesn__39__t_register_a_link.mdwn13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/bugs/listdirectives_doesn__39__t_register_a_link.mdwn b/doc/bugs/listdirectives_doesn__39__t_register_a_link.mdwn
index 03eacd03a..aa7a590df 100644
--- a/doc/bugs/listdirectives_doesn__39__t_register_a_link.mdwn
+++ b/doc/bugs/listdirectives_doesn__39__t_register_a_link.mdwn
@@ -97,3 +97,16 @@ The [[ikiwiki/directive/listdirectives]]` directive doesn't register a link betw
>>>>
>>>> (I'll interpet Joeys silence as a good sign ;-). Is there a difference between "link to it" and "path to it"? If we assume autoindex produces bonafide "first class" links there shouldn't be one!?
>>>> So far your idea sounds great, says me without any knowledge of the source. I'll try to grok it. Is there a medium for silly questions, a wiki seems not the right fit for that? -- [[holger]]
+
+>>>>> Yes, there *has* to be a difference between a first class wikilink
+>>>>> and the thing to which `map` and `inline` can contribute.
+>>>>> `map` and `inline` use a pagespec to decide what they include,
+>>>>> and pagespecs can't be evaluated and get a correct answer until the
+>>>>> set of links has been collected, because their results often depend
+>>>>> on the set of links. Otherwise, suppose you had a page `foo` whose only
+>>>>> contents were this:
+>>>>>
+>>>>> \[[!inline pages="!backlink(foo)"]]
+>>>>>
+>>>>> If `inline` generated links, it would inline exactly those pages that
+>>>>> it doesn't inline. That's never going to end well :-) --[[smcv]]