Smarty is an actively used programming language created in 2006. Smarty is a web template system written in PHP. Smarty is primarily promoted as a tool for separation of concerns. Smarty is intended to simplify compartmentalization, allowing the front-end of a web page to change separately from its back-end. Read more on Wikipedia...

13Years Old 525Users 2Jobs
  • Smarty ranks in the top 5% of languages
  • the Smarty website
  • the Smarty wikipedia page
  • Smarty first appeared in 2006
  • file extensions for Smarty include tpl
  • See also: php, isbn, twig
  • I have 44 facts about Smarty. what would you like to know? email me and let me know how I can help.

Example code from Wikipedia:

define('SMARTY_DIR', 'smarty-2.6.22/');
require_once(SMARTY_DIR . 'Smarty.class.php');

$smarty = new Smarty();
$smarty->template_dir = './templates/';
$smarty->compile_dir = './templates/compile/';

$smarty->assign('title_text', 'TITLE: This is the Smarty basic example ...');
$smarty->assign('body_html', '<p>BODY: This is the message set using assign()</p>');

$smarty->display('index.tpl');

Trending Repos

repo stars description
charts 9872 Curated applications for Kubernetes
charts 596 Helm Charts
cp-helm-charts 286 The Confluent Platform Helm charts enable you to deploy Confluent Platform services on Kubernetes for development, test, and proof of concept environments.
installer 81 A modular, a-la-carte installer for Istio components
charts 120 Localized Helm charts from Helm Hub to China
SSPanel-Uim 2661 SSPanel V3 魔改再次修改版
flux-get-started 32 Getting started with Flux and the Helm Operator

Last updated October 14th, 2019