Index: openacs-4/packages/acs-templating/www/doc/TclDocs/util.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-templating/www/doc/TclDocs/util.html,v diff -u -r1.1 -r1.2 --- openacs-4/packages/acs-templating/www/doc/TclDocs/util.html 13 Mar 2001 22:59:27 -0000 1.1 +++ openacs-4/packages/acs-templating/www/doc/TclDocs/util.html 19 Jan 2002 23:45:46 -0000 1.2 @@ -34,38 +34,36 @@ Private Methods:
+ + @@ -74,7 +72,7 @@

- template::util::alphabetized_index +
-takes an alphabetized list and an entry +a proc used for debugging, just prints out a value to the error log
- Parameters: - + + + +
+ +

+ - - - - - - - -
+ -
list - * - - {let's see how this parses out} the alphabetized list
entry - * - - req the value to be inserted
+

+
+capitalizes the first letter of a string +
+
Returns:
- either the proper list index for an alphabetized insertion or -1 if the entry is already in the list + returns formatted string
@@ -107,53 +105,67 @@

- template::util::comment_text_normalize +
- -
- template::util::display_value +
-a proc used for debugging, just prints out a value to the error log +just takes a body of text and puts a space behind every double {quote;} this is done so that the text body can be treated as a list without causing problems resulting from list elements being separated by characters other than a space
-
-
- -

-
- template::util::proc_element_compare + Parameters: + - - - + + + +
-
-used to compare two different elements in a list of parsed data for public or private procs -
-
+
text + * + + req/none the body of text to be worked on
+
Returns: +
+ same text but with a space behind each quote; double quotes that are already trailed by a space are unaffected +

@@ -162,31 +174,38 @@

- template::util::proper_noun +
-capitalizes the first letter of a string +takes a .adp template name and the name of the file to be written and creates the {file;} also puts out a notice before
-
Returns: -
- returns formatted string + Parameters: + + + + + + + + + + +
template + * + + the name of the template to be used in making the file
file_name + * + + the name of the file to be created
@@ -195,13 +214,13 @@

- template::util::quote_space +
-just takes a body of text and puts a space behind every double {quote;} this is done so that the text body can be treated as a list without causing problems resulting from list elements being separated by characters other than a space +takes an alphabetized list and an entry
Parameters: - + {let's see how this parses out} the alphabetized list + + + +
text + list * - req/none the body of text to be worked on
entry + * + + req the value to be inserted
Returns:
- same text but with a space behind each quote; double quotes that are already trailed by a space are unaffected + either the proper list index for an alphabetized insertion or -1 if the entry is already in the list
- template::util::server_root +
-uses ns_library to find the server root, may not always be accurate because it essentially asks for the tcl library path and strips off the last /tcl directory +used to compare two different elements in a list of parsed data for public or private procs
@@ -212,13 +231,13 @@

- template::util::string_range +
- +uses ns_library to find the server root, may not always be accurate because it essentially asks for the tcl library path and strips off the last /tcl directory
@@ -229,35 +248,16 @@

- template::util::write_from_template +
-takes a .adp template name and the name of the file to be written and creates the {file;} also puts out a notice before +
- Parameters: - - - - - - - - - - -
template - * - - the name of the template to be used in making the file
file_name - * - - the name of the file to be created
-