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

百面机器学习

百面机器学习

诸葛越、葫芦娃 / 人民邮电出版社 / 2018-8-1 / 89.00元

人工智能领域正在以超乎人们想象的速度发展,本书赶在人工智能彻底占领世界之前完成编写,实属万幸。 书中收录了超过100道机器学习算法工程师的面试题目和解答,其中大部分源于Hulu算法研究岗位的真实场景。本书从日常工作、生活中各种有趣的现象出发,不仅囊括了机器学习的基本知识 ,而且还包含了成为出众算法工程师的相关技能,更重要的是凝聚了笔者对人工智能领域的一颗热忱之心,旨在培养读者发现问题、解决问......一起来看看 《百面机器学习》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具