Blitz templates 最快的PHP模板引擎
簡(jiǎn)介:
Blitz templates 是一個(gè)用C語(yǔ)言開(kāi)發(fā)的快速的PHP模板引擎,它是作為一個(gè)PHP的擴(kuò)展功能。它開(kāi)始作為一個(gè)php_templates更換,但發(fā)展到更多的工作。它是基于可擴(kuò)展的模板控制器(自定義視圖類(lèi)在PHP )和簡(jiǎn)單的邏輯 。基準(zhǔn)測(cè)試表明,這是最快的一個(gè)PHP的模板引擎,使Web應(yīng)用程序更接近于一個(gè)聰明的MVC 結(jié)構(gòu)模型,最大從您的代碼分離出HTML。 這是專為大高負(fù)荷的有許多復(fù)雜的演示文稿的邏輯的互聯(lián)網(wǎng)項(xiàng)目。
下圖是幾個(gè)模板的性能測(cè)試結(jié)果:
示例模板代碼:
index.html
index.html
Html代碼
<html>
<head><title>{{ $title }}</title></head>
<body>
{{ include('header.tpl') }}
{{ list_news() }}
{{ include('footer.tpl') }}
</body>
</html>
index.php
<?php
$view = new Blitz('index.html');
function list_news(){
....
}
$view -> parse();
?>
下載地址: http://sourceforge.net/projects/blitz-templates/files/
- Springboot讀取templates文件html代碼實(shí)例
- 深入淺析springboot中static和templates區(qū)別
- SpringBoot中關(guān)于static和templates的注意事項(xiàng)以及webjars的配置
- SpringBoot用JdbcTemplates訪問(wèn)Mysql實(shí)例代碼
- AngularJs Understanding Angular Templates
- 詳解Python的Django框架中的templates設(shè)置
- asp.net使用jquery模板引擎jtemplates呈現(xiàn)表格
- Springboot訪問(wèn)templates html頁(yè)面過(guò)程詳解
相關(guān)文章
談?wù)勱P(guān)于php的優(yōu)點(diǎn)與缺點(diǎn)
本篇文章小編與大家一起談?wù)勱P(guān)于php的優(yōu)點(diǎn)與缺點(diǎn)問(wèn)題,有需要的朋友可以參考一下2013-04-04ThinkPHP關(guān)聯(lián)模型操作實(shí)例分析
ThinkPHP關(guān)聯(lián)模型操作實(shí)例分析,需要的朋友可以參考下2012-09-09