aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-13 21:56:05 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-02-13 21:56:05 +0000
commitc6e18e851edbbff889465871cc808e938d6c11d1 (patch)
tree62bd3f45ec8d72919b54ee5c35ed102ff81e99b4
parent6c204368e8e20e43a160034f64143b9608fce32f (diff)
downloadikiwiki-c6e18e851edbbff889465871cc808e938d6c11d1.tar
ikiwiki-c6e18e851edbbff889465871cc808e938d6c11d1.tar.gz
web commit by JoshTriplett: conditionals solve part of this.
-rw-r--r--doc/patchqueue/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/patchqueue/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn b/doc/patchqueue/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn
index e617f17c1..bb320063b 100644
--- a/doc/patchqueue/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn
+++ b/doc/patchqueue/varioki_--_add_template_variables___40__with_closures_for_values__41___in_ikiwiki.setup.mdwn
@@ -11,4 +11,10 @@ This plugin hooks itsef into the "pagetemplate" hook, and adds parameters to the
For every key in the configured hash, the corresponding value is evaluated. Based on whether the value was a stringified scalar, code, array, or hash, the value of the template parameter is generated on the fly. The available variables are whatever is available to "pagetemplate" hook scripts, namely, $page, $destpage, and $template. Additionally, the global variables and functions as defined in the Ikiwiki documentation (<http://ikiwiki.kitenet.net/plugins/write.html>) may be used.
-ManojSrivastava \ No newline at end of file
+ManojSrivastava
+
+> I think you could now implement "toplvl" using [[conditionals|/plugins/conditional]]:
+>
+> \[[if test="destpage(/index)" then="""...""" else="""..."""]]
+>
+> --[[JoshTriplett]]