mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 02:14:26 +02:00
*** empty log message ***
This commit is contained in:
2
AUTHORS
2
AUTHORS
@@ -2,7 +2,7 @@ Monte Ohrt <monte@ispi.net>
|
|||||||
- Idea of compiling into PHP scripts
|
- Idea of compiling into PHP scripts
|
||||||
- Initial implementation
|
- Initial implementation
|
||||||
- Documentation
|
- Documentation
|
||||||
Andrei Zmievski <andrei@ispi.net>
|
Andrei Zmievski <andrei@php.net>
|
||||||
- Rewrote parser from scratch
|
- Rewrote parser from scratch
|
||||||
- added much other functionality
|
- added much other functionality
|
||||||
- wrote Config_File class
|
- wrote Config_File class
|
||||||
|
8
CREDITS
8
CREDITS
@@ -2,7 +2,7 @@ Monte Ohrt <monte@ispi.net>:
|
|||||||
Concepted compiling templates into PHP scripts, wrote initial "proof of
|
Concepted compiling templates into PHP scripts, wrote initial "proof of
|
||||||
concept" implementation, and maintains documentation & code base.
|
concept" implementation, and maintains documentation & code base.
|
||||||
|
|
||||||
Andrei Zmievski <andrei@ispi.net>:
|
Andrei Zmievski <andrei@php.net>:
|
||||||
Rewrote parser from scratch and maintains code base.
|
Rewrote parser from scratch and maintains code base.
|
||||||
|
|
||||||
Anne Holz <anne@ispi.net>:
|
Anne Holz <anne@ispi.net>:
|
||||||
@@ -14,9 +14,9 @@ Frank Kromann <fmk@php.net>:
|
|||||||
A special thanks goes to the people that have contributed other templating
|
A special thanks goes to the people that have contributed other templating
|
||||||
solutions to the PHP community which we learned a lot from.
|
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
|
A special thanks goes to the members of the php-template mailing list and the
|
||||||
the smarty mailing list, whom sharing and bringing many ideas to the table and
|
smarty mailing list, too numerous to list, who are sharing and bringing many
|
||||||
contributing source code, too numerous to list.
|
ideas to the table and contributing source code.
|
||||||
|
|
||||||
Rasmus Lerdorf <rasmus@php.net>: For starting what eventually became
|
Rasmus Lerdorf <rasmus@php.net>: For starting what eventually became
|
||||||
the coolest programming language ever.
|
the coolest programming language ever.
|
||||||
|
@@ -6,7 +6,7 @@ require_once "PEAR.php";
|
|||||||
* Config_File class.
|
* Config_File class.
|
||||||
*
|
*
|
||||||
* @version 1.2.3
|
* @version 1.2.3
|
||||||
* @author Andrei Zmievski <andrei@ispi.net>
|
* @author Andrei Zmievski <andrei@php.net>
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* 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
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* You may contact the author of Config_File by e-mail at:
|
* You may contact the author of Config_File by e-mail at:
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Andrei Zmievski
|
* Andrei Zmievski
|
||||||
|
6
NEWS
6
NEWS
@@ -10,14 +10,14 @@ Version 1.4.0
|
|||||||
in one shot with an array. (Monte, Roman Neuhauser)
|
in one shot with an array. (Monte, Roman Neuhauser)
|
||||||
- added template filters, register_filer() and unregister_filter() API
|
- added template filters, register_filer() and unregister_filter() API
|
||||||
functions. (Monte)
|
functions. (Monte)
|
||||||
- added RELEASE_NOTES file to distribution (Monte)
|
- added RELEASE_NOTES file to distribution. (Monte)
|
||||||
- moved CREDITS out of manual into its own file (Monte)
|
- moved CREDITS out of manual into its own file. (Monte)
|
||||||
- added register_resource() and unregister_resource() API functions. (Monte)
|
- added register_resource() and unregister_resource() API functions. (Monte)
|
||||||
- changed the syntax of indexing template variables, thus supporting
|
- changed the syntax of indexing template variables, thus supporting
|
||||||
structures of arbitrary complexity; supplied fix_vars.php script to fix
|
structures of arbitrary complexity; supplied fix_vars.php script to fix
|
||||||
old syntax. (Andrei)
|
old syntax. (Andrei)
|
||||||
- added $insert_tag_check to speed up cached pages if {insert ...} is not
|
- 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
|
- added $compiler_class variable to allow specifying a different compiler
|
||||||
class. (Andrei)
|
class. (Andrei)
|
||||||
- changed Smarty to compile templates at runtime, allowing for arbitrary
|
- changed Smarty to compile templates at runtime, allowing for arbitrary
|
||||||
|
2
README
2
README
@@ -7,7 +7,7 @@ VERSION: 1.4.0
|
|||||||
AUTHORS:
|
AUTHORS:
|
||||||
|
|
||||||
Monte Ohrt <monte@ispi.net>
|
Monte Ohrt <monte@ispi.net>
|
||||||
Andrei Zmievski <andrei@ispi.net>
|
Andrei Zmievski <andrei@php.net>
|
||||||
|
|
||||||
|
|
||||||
MAILING LIST:
|
MAILING LIST:
|
||||||
|
@@ -19,7 +19,7 @@ cd /path/to/templates
|
|||||||
cp /path/to/fix_vars.php .
|
cp /path/to/fix_vars.php .
|
||||||
find . -name "*.tpl" -exec php -q ./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
|
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
|
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
|
putting in templates, translating XML -> HTML, etc. See the register_filter
|
||||||
documentation for more info.
|
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
|
UPGRADE NOTES
|
||||||
|
|
||||||
The format of the files created in the $compile_dir are now a bit different.
|
The format of the files created in the $compile_dir are now a bit different.
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
* Project: Smarty: the PHP compiled template engine
|
* Project: Smarty: the PHP compiled template engine
|
||||||
* File: Smarty.addons.php
|
* File: Smarty.addons.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
* Version: 1.4.0
|
* Version: 1.4.0
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
*
|
*
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
*
|
*
|
||||||
* You may contact the authors of Smarty by e-mail at:
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
* monte@ispi.net
|
* monte@ispi.net
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Monte Ohrt
|
* Monte Ohrt
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: Smarty.class.php
|
* File: Smarty.class.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 1.4.0
|
* Version: 1.4.0
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
*
|
*
|
||||||
* You may contact the authors of Smarty by e-mail at:
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
* monte@ispi.net
|
* monte@ispi.net
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Monte Ohrt
|
* Monte Ohrt
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: Smarty_Compiler.class.php
|
* File: Smarty_Compiler.class.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 1.4.0
|
* Version: 1.4.0
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
*
|
*
|
||||||
* You may contact the authors of Smarty by e-mail at:
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
* monte@ispi.net
|
* monte@ispi.net
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Monte Ohrt
|
* Monte Ohrt
|
||||||
|
@@ -11,7 +11,7 @@
|
|||||||
<author>
|
<author>
|
||||||
<firstname>Andrei</firstname><surname>Zmievski</surname>
|
<firstname>Andrei</firstname><surname>Zmievski</surname>
|
||||||
<affiliation>
|
<affiliation>
|
||||||
<address><email>andrei@ispi.net</email></address>
|
<address><email>andrei@php.net</email></address>
|
||||||
</affiliation>
|
</affiliation>
|
||||||
</author>
|
</author>
|
||||||
<edition>Version 1.3.0</edition>
|
<edition>Version 1.3.0</edition>
|
||||||
|
@@ -6,7 +6,7 @@ require_once "PEAR.php";
|
|||||||
* Config_File class.
|
* Config_File class.
|
||||||
*
|
*
|
||||||
* @version 1.2.3
|
* @version 1.2.3
|
||||||
* @author Andrei Zmievski <andrei@ispi.net>
|
* @author Andrei Zmievski <andrei@php.net>
|
||||||
* @access public
|
* @access public
|
||||||
*
|
*
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* 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
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* You may contact the author of Config_File by e-mail at:
|
* You may contact the author of Config_File by e-mail at:
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Andrei Zmievski
|
* Andrei Zmievski
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: Smarty.class.php
|
* File: Smarty.class.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 1.4.0
|
* Version: 1.4.0
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
*
|
*
|
||||||
* You may contact the authors of Smarty by e-mail at:
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
* monte@ispi.net
|
* monte@ispi.net
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Monte Ohrt
|
* Monte Ohrt
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
* Project: Smarty: the PHP compiling template engine
|
* Project: Smarty: the PHP compiling template engine
|
||||||
* File: Smarty_Compiler.class.php
|
* File: Smarty_Compiler.class.php
|
||||||
* Author: Monte Ohrt <monte@ispi.net>
|
* Author: Monte Ohrt <monte@ispi.net>
|
||||||
* Andrei Zmievski <andrei@ispi.net>
|
* Andrei Zmievski <andrei@php.net>
|
||||||
*
|
*
|
||||||
* Version: 1.4.0
|
* Version: 1.4.0
|
||||||
* Copyright: 2001 ispi of Lincoln, Inc.
|
* Copyright: 2001 ispi of Lincoln, Inc.
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
*
|
*
|
||||||
* You may contact the authors of Smarty by e-mail at:
|
* You may contact the authors of Smarty by e-mail at:
|
||||||
* monte@ispi.net
|
* monte@ispi.net
|
||||||
* andrei@ispi.net
|
* andrei@php.net
|
||||||
*
|
*
|
||||||
* Or, write to:
|
* Or, write to:
|
||||||
* Monte Ohrt
|
* Monte Ohrt
|
||||||
|
Reference in New Issue
Block a user