Smarty (template engine)

Smarty
Developer(s)Monte Ohrt, Messju Mohr, Uwe Tews
Stable release
5.5.1[1] Edit this on Wikidata / 19 May 2025 (19 May 2025)
Repository
Written inPHP
TypeTemplate Engine
LicenseLGPL
Websitewww.smarty.net

Smarty is a web template system written in PHP. Smarty is primarily promoted as a tool for separation of concerns.[2] Smarty is intended to simplify compartmentalization, allowing the front-end of a web page to change separately from its back-end. Ideally, this lowers costs and minimizes the efforts associated with software maintenance.

Smarty generates web content through the placement of special Smarty tags within a document. These tags are processed and substituted with other code. Tags are directives for Smarty that are enclosed by template delimiters. These directives can be variables, denoted by a dollar sign ($), functions, logical or loop statements. Smarty allows PHP programmers to define custom functions that can be accessed using Smarty tags.

  1. ^ "Release 5.5.1". 19 May 2025. Retrieved 1 June 2025.
  2. ^ Parr, Terence John (2004). Enforcing strict model-view separation in template engines. Proceedings of the 13th international conference on World Wide Web. ISBN 1-58113-844-X.

© MMXXIII Rich X Search. We shall prevail. All rights reserved. Rich X Search