From d07c9368cb917dd4e0e2b7096aa90c28d917840d Mon Sep 17 00:00:00 2001 From: Nelis Oostens Date: Mon, 27 Jul 2015 08:06:39 +0000 Subject: [PATCH 1/2] Clarified templateN documentation - Added arg start counter --- doc/config_settings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/config_settings.xml b/doc/config_settings.xml index 26c4db99..27442901 100644 --- a/doc/config_settings.xml +++ b/doc/config_settings.xml @@ -917,7 +917,7 @@ '\n' -> newline '\\' -> backslash '\ ' -> space - '\N' -> template argument N + '\N' -> template argument N (starting from 1) From b5e4056b9d10588e6d741946196821ae5246b82e Mon Sep 17 00:00:00 2001 From: Nelis Oostens Date: Mon, 27 Jul 2015 08:08:50 +0000 Subject: [PATCH 2/2] Updated templateN to new syntax - Explicitly mentioned the use of [[ and ]] --- doc/variables.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/variables.xml b/doc/variables.xml index df0d442c..f97ab572 100644 --- a/doc/variables.xml +++ b/doc/variables.xml @@ -3707,12 +3707,12 @@ whitespace. Also simple nesting of templates is possible this way. Here are some examples of template - definitions: + definitions, note they are placed between [[ ... ]] instead of ' ... ': - template0 $\1\2 - template1 \1: ${fs_used \2} / ${fs_size - \2} - template2 \1 \2 + template0 = [[$\1\2]] + template1 = [[\1: ${fs_used \2} / ${fs_size + \2}]] + template2 = [[\1 \2]] The following list shows sample usage of the templates defined above, with the equivalent syntax