From 2e4e68462c2aaa8474694fc18734a302140a4f0f Mon Sep 17 00:00:00 2001 From: didou Date: Sun, 18 Apr 2004 17:34:12 +0000 Subject: [PATCH] WS --- .../language-escaping.xml | 69 ++++++++++--------- .../language-basic-syntax/language-math.xml | 22 +++--- .../language-syntax-attributes.xml | 44 ++++++------ .../language-syntax-comments.xml | 26 +++---- .../language-syntax-functions.xml | 48 ++++++------- .../language-syntax-quotes.xml | 28 ++++---- 6 files changed, 121 insertions(+), 116 deletions(-) diff --git a/docs/en/designers/language-basic-syntax/language-escaping.xml b/docs/en/designers/language-basic-syntax/language-escaping.xml index 84d929ac..b1dedf05 100644 --- a/docs/en/designers/language-basic-syntax/language-escaping.xml +++ b/docs/en/designers/language-basic-syntax/language-escaping.xml @@ -1,35 +1,35 @@ - - Escaping Smarty Parsing - - It is sometimes desirable or even necessary to have Smarty ignore sections it - would otherwise parse. A classic example is embedding Javascript or CSS code in - a template. The problem arises as those languages use the { and } characters - which are also the default delimiters for Smarty. - + + Escaping Smarty Parsing + + It is sometimes desirable or even necessary to have Smarty ignore sections it + would otherwise parse. A classic example is embedding Javascript or CSS code in + a template. The problem arises as those languages use the { and } characters + which are also the default delimiters for Smarty. + - - The simplest thing is to avoid the situation altogether by separating your Javascript - and CSS code into their own files and then using standard HTML methods to access them. - + + The simplest thing is to avoid the situation altogether by separating your Javascript + and CSS code into their own files and then using standard HTML methods to access them. + - - Including literal content is possible using {literal} .. {/literal} blocks. - Similar to HTML entity usage, you can use {ldelim} and {rdelim} to display the current delimiters. - + + Including literal content is possible using {literal} .. {/literal} blocks. + Similar to HTML entity usage, you can use {ldelim} and {rdelim} to display the current delimiters. + - - It is often convenient to simply change Smarty's $left_delimiter and - $right_delimiter. - - - changing delimiters example - + + It is often convenient to simply change Smarty's $left_delimiter and + $right_delimiter. + + + changing delimiters example + assign('foo', 'bar'); $smarty->display('example.tpl'); ?> - ---- example.tpl +]]> + + + Where example.tpl is: + + + var foo = ; function dosomething() { @@ -50,8 +55,8 @@ function dosomething() { dosomething(); ]]> - - + + \ No newline at end of file +--> diff --git a/docs/en/designers/language-basic-syntax/language-math.xml b/docs/en/designers/language-basic-syntax/language-math.xml index f1719deb..bbec60ad 100644 --- a/docs/en/designers/language-basic-syntax/language-math.xml +++ b/docs/en/designers/language-basic-syntax/language-math.xml @@ -1,13 +1,13 @@ - - Math - - Math can be applied directly to variable values. - - - math examples - + + Math + + Math can be applied directly to variable values. + + + math examples + - - + + \ No newline at end of file +--> diff --git a/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml b/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml index 69f5b712..02ed656a 100644 --- a/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml +++ b/docs/en/designers/language-basic-syntax/language-syntax-attributes.xml @@ -1,24 +1,24 @@ - - Attributes - - Most of the functions take attributes that specify or modify - their behavior. Attributes to Smarty functions are much like HTML - attributes. Static values don't have to be enclosed in quotes, but it - is recommended for literal strings. Variables may also be used, and - should not be in quotes. - - - Some attributes require boolean values (true or false). These can be - specified as either unquoted true, - on, and yes, or - false, off, and - no. - - - function attribute syntax - + + Attributes + + Most of the functions take attributes that specify or modify + their behavior. Attributes to Smarty functions are much like HTML + attributes. Static values don't have to be enclosed in quotes, but it + is recommended for literal strings. Variables may also be used, and + should not be in quotes. + + + Some attributes require boolean values (true or false). These can be + specified as either unquoted true, + on, and yes, or + false, off, and + no. + + + function attribute syntax + ]]> - - + + \ No newline at end of file +--> diff --git a/docs/en/designers/language-basic-syntax/language-syntax-comments.xml b/docs/en/designers/language-basic-syntax/language-syntax-comments.xml index 33889335..112051af 100644 --- a/docs/en/designers/language-basic-syntax/language-syntax-comments.xml +++ b/docs/en/designers/language-basic-syntax/language-syntax-comments.xml @@ -1,16 +1,16 @@ - - Comments - - Template comments are surrounded by asterisks, and that is surrounded - by the delimiter tags like so: {* this is a comment *} - Smarty comments are not displayed in the final output of the template. - They are used for making internal notes in the templates. - - - Comments - + + Comments + + Template comments are surrounded by asterisks, and that is surrounded + by the delimiter tags like so: {* this is a comment *} + Smarty comments are not displayed in the final output of the template. + They are used for making internal notes in the templates. + + + Comments + ]]> - - + + - - Functions - - Each Smarty tag either prints a - variable or invokes some sort - of function. Functions are processed and displayed by enclosing the - function and its attributes into delimiters like so: {funcname - attr1="val" attr2="val"}. - - - function syntax - + + Functions + + Each Smarty tag either prints a + variable or invokes some sort + of function. Functions are processed and displayed by enclosing the + function and its attributes into delimiters like so: {funcname + attr1="val" attr2="val"}. + + + function syntax + - - - - Both built-in functions and custom functions have the same syntax in - the templates. Built-in functions are the inner workings of Smarty, - such as if, section and - strip. They cannot be modified. Custom functions are - additional functions implemented via plugins. They can be modified to - your liking, or you can add new ones. html_options and - html_select_date are examples of custom functions. - + + + + Both built-in functions and custom functions have the same syntax in + the templates. Built-in functions are the inner workings of Smarty, + such as if, section and + strip. They cannot be modified. Custom functions are + additional functions implemented via plugins. They can be modified to + your liking, or you can add new ones. html_options and + html_select_date are examples of custom functions. + \ No newline at end of file +--> diff --git a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml b/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml index 0cb824d4..f2d5cf89 100644 --- a/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml +++ b/docs/en/designers/language-basic-syntax/language-syntax-quotes.xml @@ -1,16 +1,16 @@ - - Embedding Vars in Double Quotes - - Smarty will recognize assigned variables embedded in double quotes so long - as the variables contain only numbers, letters, underscores and brackets - []. With any other characters (period, object reference, etc.) the variable - must be surrounded by backticks. - - - embedded quotes syntax - + + Embedding Vars in Double Quotes + + Smarty will recognize assigned variables embedded in double quotes so long + as the variables contain only numbers, letters, underscores and brackets + []. With any other characters (period, object reference, etc.) the variable + must be surrounded by backticks. + + + embedded quotes syntax + - - + + \ No newline at end of file +-->