- 授权协议: 未知
- 开发语言: PHP
- 操作系统: 跨平台
- 软件首页: http://templum.electricmonk.nl/
- 软件文档: http://templum.electricmonk.nl/docs/userguide/userguide.html
软件介绍
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> </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"> </td>
</tr>
</table>
@endif
</div>
高性能JavaScript
Nicholas C.Zakas / 丁琛、赵泽欣 / 电子工业出版社 / 2010-11 / 49.00元
如果你使用JavaScript构建交互丰富的Web应用,那么JavaScript代码可能是造成你的Web应用速度变慢的主要原因。《高性能JavaScript》揭示的技术和策略能帮助你在开发过程中消除性能瓶颈。你将会了解如何提升各方面的性能,包括代码的加载、运行、DOM交互、页面生存周期等。雅虎的前端工程师Nicholas C. Zakas和其他五位JavaScript专家介绍了页面代码加载的最佳方......一起来看看 《高性能JavaScript》 这本书的介绍吧!
