]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/else_parameter_for_map_plugin.mdwn
Migrate escaped directives (\[[) in doc/todo to have \[[! prefix
[ikiwiki.git] / doc / todo / else_parameter_for_map_plugin.mdwn
index a59bcfd14d43d22310d678aca691d2681564ce8f..12a91b4ee21cc7e735567ba3c99e1d97271c59c6 100644 (file)
@@ -14,14 +14,14 @@ documentation yet, I'm waiting for feedback first, but I'll do it for sure. -- [
 >> Hmmm, what do you mean? Adding a syntax such as the one below?
 >> Or something else?
 
-        \[[if test="map(" then="..." 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/*"]]
+       \[[!if  test="foo/*" then="""
+       [[!map pages="foo/*"]]
        """ else="no pages"]]
 
 --[[Joey]]
@@ -39,3 +39,9 @@ documentation yet, I'm waiting for feedback first, but I'll do it for sure. -- [
 >>>> Write a [[plugins/template]] which accepts a pagespec and an
 >>>> "else" clause, and then you won't have to duplicate the
 >>>> pagespec. --[[JoshTriplett]]
+
+>>>> Yeah, the patch is obviously very simple. My problem with it really is
+>>>> that there would seem to be several other places in ikiwiki where
+>>>> someone might want to be able to handle an "else" case where a
+>>>> pagespec expands to nothing. And adding else cases for all of them
+>>>> could be a bit much. --[[Joey]]