From 49c5145935f8c5d35db23ae173c6650a37a4907f Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sun, 15 Jul 2007 09:15:13 +0000 Subject: cache output hash. this avoids having to parse all the samples on every edit pageload --- templates/help_format_tikiwiki_inc.tpl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'templates/help_format_tikiwiki_inc.tpl') diff --git a/templates/help_format_tikiwiki_inc.tpl b/templates/help_format_tikiwiki_inc.tpl index 3b958ac..b3d191e 100644 --- a/templates/help_format_tikiwiki_inc.tpl +++ b/templates/help_format_tikiwiki_inc.tpl @@ -1,16 +1,16 @@ {strip}

Tikiwiki Markup Syntax

-{foreach from=$exampleHash key=section item=examples name=sections} - {if !$smarty.foreach.sections.first}


{/if} -

{tr}{$section}{/tr}

+{foreach from=$examples.tikiwiki key=title item=tikiwiki name=tw} + {if !$smarty.foreach.tw.first}


{/if} +

{tr}{$title}{/tr}

- - + + - {foreach from=$examples key=desc item=example} + {foreach from=$tikiwiki key=desc item=example}
DescriptionExampleResultExampleResult
{tr}{$desc}{/tr} @@ -72,7 +72,7 @@

- {foreach from=$mediawiki key=title item=example} + {foreach from=$examples.mediawiki key=title item=example} -- cgit v1.3
{tr}Applied Examples{/tr}
{$title} Result