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: + + + + + + +