diff --git a/AUTHORS b/AUTHORS index dc795bec..fda63232 100644 --- a/AUTHORS +++ b/AUTHORS @@ -2,7 +2,7 @@ Monte Ohrt - Idea of compiling into PHP scripts - Initial implementation - Documentation -Andrei Zmievski +Andrei Zmievski - Rewrote parser from scratch - added much other functionality - wrote Config_File class diff --git a/CREDITS b/CREDITS index 340460e5..74c7a447 100644 --- a/CREDITS +++ b/CREDITS @@ -2,7 +2,7 @@ Monte Ohrt : Concepted compiling templates into PHP scripts, wrote initial "proof of concept" implementation, and maintains documentation & code base. -Andrei Zmievski : +Andrei Zmievski : Rewrote parser from scratch and maintains code base. Anne Holz : @@ -14,9 +14,9 @@ Frank Kromann : A special thanks goes to the people that have contributed other templating solutions to the PHP community which we learned a lot from. -A special thanks goes to the members of the php-template mailing list and -the smarty mailing list, whom sharing and bringing many ideas to the table and -contributing source code, too numerous to list. +A special thanks goes to the members of the php-template mailing list and the +smarty mailing list, too numerous to list, who are sharing and bringing many +ideas to the table and contributing source code. Rasmus Lerdorf : For starting what eventually became the coolest programming language ever. diff --git a/Config_File.class.php b/Config_File.class.php index bf8b14b9..0c1c8fbf 100644 --- a/Config_File.class.php +++ b/Config_File.class.php @@ -6,7 +6,7 @@ require_once "PEAR.php"; * Config_File class. * * @version 1.2.3 - * @author Andrei Zmievski + * @author Andrei Zmievski * @access public * * Copyright: 2001 ispi of Lincoln, Inc. @@ -26,7 +26,7 @@ require_once "PEAR.php"; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * You may contact the author of Config_File by e-mail at: - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Andrei Zmievski diff --git a/NEWS b/NEWS index 8333cac1..64d9040e 100644 --- a/NEWS +++ b/NEWS @@ -10,14 +10,14 @@ Version 1.4.0 in one shot with an array. (Monte, Roman Neuhauser) - added template filters, register_filer() and unregister_filter() API functions. (Monte) - - added RELEASE_NOTES file to distribution (Monte) - - moved CREDITS out of manual into its own file (Monte) + - added RELEASE_NOTES file to distribution. (Monte) + - moved CREDITS out of manual into its own file. (Monte) - added register_resource() and unregister_resource() API functions. (Monte) - changed the syntax of indexing template variables, thus supporting structures of arbitrary complexity; supplied fix_vars.php script to fix old syntax. (Andrei) - added $insert_tag_check to speed up cached pages if {insert ...} is not - used (Monte) + used. (Monte) - added $compiler_class variable to allow specifying a different compiler class. (Andrei) - changed Smarty to compile templates at runtime, allowing for arbitrary diff --git a/README b/README index 65bf3463..37d649a0 100644 --- a/README +++ b/README @@ -7,7 +7,7 @@ VERSION: 1.4.0 AUTHORS: Monte Ohrt - Andrei Zmievski + Andrei Zmievski MAILING LIST: diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 97f4a83a..60eed5bd 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -19,7 +19,7 @@ cd /path/to/templates cp /path/to/fix_vars.php . find . -name "*.tpl" -exec php -q ./fix_vars.php {} \; -NEW AND IMPROVED COMPILER +NEW AND IMPROVED COMPILATION PROCESS Smarty 1.4.0 also has a new compilation process. Instead of compiling all the templates up front, it now compiles them at runtime. This has several @@ -55,6 +55,15 @@ removing unwanted comments, keeping an eye on words or functionality people are putting in templates, translating XML -> HTML, etc. See the register_filter documentation for more info. +Another addition are the so-called compiler functions. These are custom +functions registered by the user that are executed at compilation time of the +template. They can be used to inject PHP code or time-sensitive static content +into the compiled template. + +The run-time custom functions are now passed Smarty object as the second +parameter. This can be used, for example, to assign or clear template variables +from inside the custom function. + UPGRADE NOTES The format of the files created in the $compile_dir are now a bit different. diff --git a/Smarty.addons.php b/Smarty.addons.php index 1e70c8a6..b1370eb3 100644 --- a/Smarty.addons.php +++ b/Smarty.addons.php @@ -3,7 +3,7 @@ * Project: Smarty: the PHP compiled template engine * File: Smarty.addons.php * Author: Monte Ohrt - * Andrei Zmievski + * Andrei Zmievski * Version: 1.4.0 * Copyright: 2001 ispi of Lincoln, Inc. * @@ -23,7 +23,7 @@ * * You may contact the authors of Smarty by e-mail at: * monte@ispi.net - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Monte Ohrt diff --git a/Smarty.class.php b/Smarty.class.php index 154fcd33..8dad13ad 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -3,7 +3,7 @@ * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * Author: Monte Ohrt - * Andrei Zmievski + * Andrei Zmievski * * Version: 1.4.0 * Copyright: 2001 ispi of Lincoln, Inc. @@ -27,7 +27,7 @@ * * You may contact the authors of Smarty by e-mail at: * monte@ispi.net - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Monte Ohrt diff --git a/Smarty_Compiler.class.php b/Smarty_Compiler.class.php index 16a01e6c..7ecb441d 100644 --- a/Smarty_Compiler.class.php +++ b/Smarty_Compiler.class.php @@ -4,7 +4,7 @@ * Project: Smarty: the PHP compiling template engine * File: Smarty_Compiler.class.php * Author: Monte Ohrt - * Andrei Zmievski + * Andrei Zmievski * * Version: 1.4.0 * Copyright: 2001 ispi of Lincoln, Inc. @@ -25,7 +25,7 @@ * * You may contact the authors of Smarty by e-mail at: * monte@ispi.net - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Monte Ohrt diff --git a/docs.sgml b/docs.sgml index eaf6e6d4..625ac8dd 100644 --- a/docs.sgml +++ b/docs.sgml @@ -11,7 +11,7 @@ AndreiZmievski -
andrei@ispi.net
+
andrei@php.net
Version 1.3.0 diff --git a/libs/Config_File.class.php b/libs/Config_File.class.php index bf8b14b9..0c1c8fbf 100644 --- a/libs/Config_File.class.php +++ b/libs/Config_File.class.php @@ -6,7 +6,7 @@ require_once "PEAR.php"; * Config_File class. * * @version 1.2.3 - * @author Andrei Zmievski + * @author Andrei Zmievski * @access public * * Copyright: 2001 ispi of Lincoln, Inc. @@ -26,7 +26,7 @@ require_once "PEAR.php"; * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * You may contact the author of Config_File by e-mail at: - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Andrei Zmievski diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 154fcd33..8dad13ad 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -3,7 +3,7 @@ * Project: Smarty: the PHP compiling template engine * File: Smarty.class.php * Author: Monte Ohrt - * Andrei Zmievski + * Andrei Zmievski * * Version: 1.4.0 * Copyright: 2001 ispi of Lincoln, Inc. @@ -27,7 +27,7 @@ * * You may contact the authors of Smarty by e-mail at: * monte@ispi.net - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Monte Ohrt diff --git a/libs/Smarty_Compiler.class.php b/libs/Smarty_Compiler.class.php index 16a01e6c..7ecb441d 100644 --- a/libs/Smarty_Compiler.class.php +++ b/libs/Smarty_Compiler.class.php @@ -4,7 +4,7 @@ * Project: Smarty: the PHP compiling template engine * File: Smarty_Compiler.class.php * Author: Monte Ohrt - * Andrei Zmievski + * Andrei Zmievski * * Version: 1.4.0 * Copyright: 2001 ispi of Lincoln, Inc. @@ -25,7 +25,7 @@ * * You may contact the authors of Smarty by e-mail at: * monte@ispi.net - * andrei@ispi.net + * andrei@php.net * * Or, write to: * Monte Ohrt