Code Monkey home page Code Monkey logo

smarty's Introduction

Smarty PHP Template Engine

About this repository

This repository was created from the Smarty svn sources using the svn2git tool:

$ svn2git https://smarty-php.googlecode.com/svn -v

and is updated at each Smarty release with:

$ svn2git --rebase -v

On top of the Smarty code we add some patches to make it work better with the SmartyBundle library.

What is Smarty?

Smarty is a template engine for PHP, facilitating the separation of presentation (HTML/CSS) from application logic. This implies that PHP code is application logic, and is separated from the presentation.

Some of Smarty's features:

  • It is extremely fast.
  • It is efficient since the PHP parser does the dirty work.
  • No template parsing overhead, only compiles once.
  • It is smart about recompiling only the template files that have changed.
  • You can easily create your own custom functions and variable modifiers, so the template language is extremely extensible.
  • Configurable template {delimiter} tag syntax, so you can use {$foo}, {{$foo}}, <!--{$foo}-->, etc.
  • The {if}..{elseif}..{else}..{/if} constructs are passed to the PHP parser, so the {if...} expression syntax can be as simple or as complex an evaluation as you like.
  • Allows unlimited nesting of sections, if's etc.
  • Built-in caching support.
  • Arbitrary template sources.
  • Template Inheritance for easy management of template content.
  • Plugin architecture.

See the Smarty3 Manual for other features and information on it's syntax, configuration and installation.

What is SmartyBundle?

SmartyBundle is a module that allows the usage of the Smarty template engine in the Symfony2 and PPI2 frameworks.

Authors

Smarty authors

https://code.google.com/p/smarty-php/people/list

noiselabs/smarty authors

Vítor Brandão - [email protected] ~ twitter.com/noiselabs ~ www.noiselabs.org

See also the list of contributors who participated in this project.

Submitting bugs and feature requests

Smarty issues should be reported to its own bugtracker on GoogleCode.

Specific issues regarding this repository may be reported here on GitHub.

Bitdeli Badge

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.