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...

14Years Old 525Users ?Jobs

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 August 9th, 2020

Edit Smarty on GitHub