PHP模版引擎 Templum

码农软件 · 软件分类 · 模板引擎 · 2019-08-25 09:44:36

软件介绍

Templum 是一个超轻量级的、高速的而且功能强大的 PHP 模版引擎,它重用了 PHP 本身的强大功能,提供了附加的特性以简化模版的编写。

示例模版:

[[
if (!function_exists('helperBtnAction')) {
function helperBtnAction($action, $id, $icon) {
echo('<a target="_blank" rel="nofollow" href="?action='.$action.'&id='.$id.'">');
echo('<img src="ico/'.$icon.'.png" alt="'.$icon.'" border="0" />');
echo('</a>');
};
};
]]

<h1>User list</h1>

<p>Hello {{$username}}, here's a list of all the users:</p>

<div id="acocunts">
@if (count($accounts) <= 0):
No accounts found.
@else:
<table>
<tr>
<th>&nbsp;</th>
<th>Username</th>
<th>Full naam</th>
</tr>
@foreach ($accounts as $account):
<tr>
<td>{{helperBtnAction('account.edit', $account['id'], 'edit')}}</td>
<td>{{$account['username']}}</td>
<td>{{$account['realname']}}</td>
</tr>
@endforeach
<tr>
<td>{{helperBtnAction('account.add', '', 'add')}}</td>
<td colspan="4">&nbsp;</td>
</tr>
</table>
@endif
</div>

本文地址:https://codercto.com/soft/d/13123.html

Google是如何控制世界的

Google是如何控制世界的

(美)丹尼尔·伊克比亚 / 李军 / 东方出版社 / 2008-08 / 36.00元

秘Google的发展之路! Google,这个有着数百亿的网页存储量、每天两亿搜索次数的搜索引擎,最初仅仅是一个方程式。这个由拉里·佩奇和塞吉·布林两位天才创造出的超级算法甚至比可口可乐的配方还要保密。 当广告公司为自己网页在搜索结果中的排序争得头破血流时,Google正悠然地坐收渔翁之利,这种天才的拍卖广告链接的商业模式给Google带来了令人瞠目结舌的企业利润!仅仅从1999~20......一起来看看 《Google是如何控制世界的》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

XML、JSON 在线转换
XML、JSON 在线转换

在线XML、JSON转换工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具