X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2c05a34be17c805d929f0ad563acf857eba1d46b..1e67780e626ea96482a5077b355dbced43a1f418:/doc/todo/else_parameter_for_map_plugin.mdwn diff --git a/doc/todo/else_parameter_for_map_plugin.mdwn b/doc/todo/else_parameter_for_map_plugin.mdwn index 9508e0855..8487f3564 100644 --- a/doc/todo/else_parameter_for_map_plugin.mdwn +++ b/doc/todo/else_parameter_for_map_plugin.mdwn @@ -7,3 +7,21 @@ This was quite simple, so I implemented this (branch "map" in my ikiwiki repo, see my user page for the up-to-date URL). Not patched the documentation yet, I'm waiting for feedback first, but I'll do it for sure. -- [[intrigeri]] + +> Can't a [[plugins/conditional]] be for this? +> --[[Joey]] + +>> Hmmm, what do you mean? Adding a syntax such as the one below? +>> Or something else? + + \[[if test="map(" then="..." else="..."]] + +>> What would you write in the `then` clause? +>> I'm not opposed at all to rewrite my two-liner, but I don't understand. +>> --[[intrigeri]] + + \[[if test="foo/*" then=""" + \[[map pages="foo/*"]] + """]] + +--[[Joey]]