Coder Social home page Coder Social logo

smarty's Introduction

NAME:

    Smarty - the PHP compiling template engine

VERSION: 2.6.26

AUTHORS:
    
    Monte Ohrt <monte at ohrt dot com>
    Andrei Zmievski <[email protected]>

MAILING LISTS:

    We have a few mailing lists. "discussion" for you to share your ideas or ask
	questions, "developers" for those interested in the development efforts of Smarty,
	and "svn" for those that would like to track the updates made in the svn
	repository.

    send a blank e-mail message to:
      [email protected](subscribe to the general discussion list)
      [email protected] (unsubscribe from the general discussion list)
      [email protected] (subscribe to digest)
      [email protected] (unsubscribe from digest)
      [email protected] (subscribe to the dev list)
      [email protected] (unsubscribe from the dev list)
      [email protected] (subscribe to the svn list)
      [email protected] (unsubscribe from the svn list)

    You can also browse the mailing list archives at
    http://groups.google.com/group/smarty-discussion
    http://groups.google.com/group/smarty-developers

    and the OLD 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
    manageable 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-2005 New Digital Group, 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.

smarty's People

Contributors

spiderr avatar lsces avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.