mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-15 15:09:51 +01:00
bea65beb164536eb962d2266797eadcbafbe4f0c
NAME:
Smarty - the PHP compiling template engine
VERSION: 2.0.1
AUTHORS:
Monte Ohrt <monte@ispi.net>
Andrei Zmievski <andrei@php.net>
MAILING LIST:
We have a mailing list for you to share your ideas or ask questions.
send a blank e-mail message to:
subscribe-smarty@lists.ispi.net (subscribe to the list)
digest-smarty@lists.ispi.net (subscribe or switch to digest mode)
mail-smarty@lists.ispi.net (switch off digest mode)
unsubscribe-smarty@lists.ispi.net (unsubscribe from the list)
You can also browse the mailing list archives at
http://marc.theaimsgroup.com/?l=smarty&r=1&w=2
SYNOPSIS:
require("Smarty.class.php");
$smarty = new Smarty;
$smarty->assign("Title","My Homepage");
$smarty->assign("Names",array("John","Gary","Gregg","James"));
$smarty->display("index.tpl");
DESCRIPTION:
What is Smarty?
Smarty is a template engine for PHP. Many other template engines for PHP
provide basic variable substitution and dynamic block functionality.
Smarty takes a step further to be a "smart" template engine, adding
features such as configuration files, template functions, and variable
modifiers, and making all of this functionality as easy as possible to
use for both programmers and template designers. Smarty also converts
the templates into PHP scripts, eliminating the need to parse the
templates on every invocation. This makes Smarty extremely scalable and
managable for large application needs.
Some of Smarty's features:
* it is extremely fast
* no template parsing overhead, only compiles once.
* it is smart about recompiling only the template files that have
changed.
* the template language is remarkably extensible via the plugin
architecture.
* configurable template delimiter tag syntax, so you can use
{}, {{}}, <!--{}-->, or whatever you like.
* built-in caching of template output.
* arbitrary template sources (filesystem, databases, etc.)
* template if/elseif/else/endif constructs are passed to the PHP parser,
so the if syntax can be as simple or as complex as you like.
* unlimited nesting of sections, conditionals, etc. allowed
* it is possible to embed PHP code right in your template files,
although not recommended and doubtfully needed since the engine
is so customizable.
* and many more.
COPYRIGHT:
Copyright (c) 2001,2002 ispi of Lincoln, Inc. All rights reserved.
This software is released under the GNU Lesser General Public License.
Please read the disclaimer at the top of the Smarty.class.php file.
Languages
PHP
91.1%
Smarty
6.2%
Yacc
2.4%
Dockerfile
0.1%
Shell
0.1%