欢迎大家赞助一杯啤酒🍺 我们准备了下酒菜:Formal mathematics/Isabelle/ML, Formal verification/Coq/ACL2, C++/F#/Lisp
Smarty
来自开放百科 - 灰狐
Smarty : PHP Template Engine
Start
templates\index.tpl
{* Smarty *} Hello, {$name}!
hello.php
<?php require('C:/wamp/www/smarty/Smarty.class.php'); // Windows require('/usr/local/lib/php/Smarty/Smarty.class.php'); // Linux $smarty = new Smarty;
$smarty->template_dir = 'templates/'; $smarty->compile_dir = 'templates_c/'; $smarty->config_dir = 'configs/'; $smarty->cache_dir = 'cache/';
$smarty->assign('name','Smarty'); $smarty->display('index.tpl'); ?>
Links
分享您的观点