From 479c7a1ea62d8fce3ef54f9deae89230d0b52a5d Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 12 Feb 2007 02:44:47 +0000 Subject: * Allow plugins to add new types of tests that can be used in PageSpecs. * Add a "conditional" plugin, which allows displaying text if a condition is true. It is enabled by default so conditional can be used in the basewiki. * Use conditionals in the template for plugins, so that plugin pages say if they're currently enabled or not, and in various other places in the wiki. --- doc/plugins/polygen.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/plugins/polygen.mdwn') diff --git a/doc/plugins/polygen.mdwn b/doc/plugins/polygen.mdwn index 240edc961..5cd2f41d2 100644 --- a/doc/plugins/polygen.mdwn +++ b/doc/plugins/polygen.mdwn @@ -9,10 +9,10 @@ For example: It's also possible to specify a starting nonterminal for the grammar by including `symbol="text"` in the directive. +[[if test="enabled(polygen)" then=""" ---- -If this plugin is enabled, and polygen is installed, here are a few notes -about ikiwiki. +Here are a few notes about ikiwiki, courtesy of polygen: Ikiwiki is internally based on a [[polygen grammar="designpatterns"]] coupled to a [[polygen grammar="designpatterns"]], as described in @@ -25,3 +25,5 @@ Ikiwiki reviews:
  • [[polygen grammar="reviews"]]
  • [[polygen grammar="reviews"]]
  • + +"""]] -- cgit v1.2.3