From 44fdef7a4dcc826c27b26bee3b3d2aeebf98f158 Mon Sep 17 00:00:00 2001 From: pete_morgan Date: Sun, 26 Mar 2006 14:59:10 +0000 Subject: [PATCH] Cleaned up some ws and another example --- .../language-function-eval.xml | 63 +++++++++++++------ 1 file changed, 43 insertions(+), 20 deletions(-) diff --git a/docs/en/designers/language-custom-functions/language-function-eval.xml b/docs/en/designers/language-custom-functions/language-function-eval.xml index 9a02b995..e2717ed0 100644 --- a/docs/en/designers/language-custom-functions/language-function-eval.xml +++ b/docs/en/designers/language-custom-functions/language-function-eval.xml @@ -69,30 +69,30 @@ {eval} + - emphend = - title = Welcome to {$company}'s home page! - ErrorCity = You must supply a {#emphstart#}city{#emphend#}. - ErrorState = You must supply a {#emphstart#}state{#emphend#}. +#setup.conf +#---------- +emphstart = +emphend = +title = Welcome to {$company}'s home page! +ErrorCity = You must supply a {#emphstart#}city{#emphend#}. +ErrorState = You must supply a {#emphstart#}state{#emphend#}. ]]> - Where index.tpl is: + Where the template is: @@ -100,14 +100,37 @@ city. - You must supply a state. - +This is the contents of foo. +Welcome to Foobar Pub & Grill's home page! +You must supply a city. +You must supply a state. ]]> + + + another {eval} example + This example outputs the server name and IP. + The variable $str could be from a database for example. + + assign('foo',$str); + ]]> + + + Where the template is: + + + + + + +