使用Smarty来做模板处理类是目前大部分PHP网站的选择,因为它功能强大,并且和ADODB搭配的非常好,处理起来是得心应手。但是不管是Smarty,还是ADODB也好,因为功能强大,类库众多,所以速度比较慢,所以ADODB首先就出来了一款ADODB Lite版。
详细请查看:http://www.webjx.com/htmldata/2005-07-15/1121379294.html
那么Smarty是否有类似的小型版的呢?回答是:有
有一款叫做Smarty-Light的程序,目前版本是:2.2.9,它基本上兼容Smarty的所有语法,学习起来也很快。
它的官方网站上说:
* Smarty-Light 是一个简单版的Smarty, 能够向下兼容, 非常的快速.
* Smarty-Light大部分的基本语法是跟Smarty一样的,所以如果学过Smarty的人可以非常容易的学习它。
* smarty-Light的变量定义跟PHP非常类似,就算是一个初学者也能够快速的学会。
* Smarty-Light引入了一些新的转换标签和函数。
* Smarty-Light的编译引擎编译模板非常快速,所以编译后的文件能够很快的加载。
* Smarty-Light也同样具有缓存功能,访问的时候能够加载静态页。
* Smarty-Light也同样支持配置文件和变量。
(翻译的不对别介意)
原文:http://www.paullockaby.com/projects/smarty-light/docs/what.is.php#why
也许你应用不是那么复杂的话,可以考虑应用下Smarty-Light这款轻型的模板引擎。
官方网站:http://www.paullockaby.com/projects/smarty-light/

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool
