syanaputra/silverstripe-extra-template-syntax
Composer 安装命令:
composer require syanaputra/silverstripe-extra-template-syntax
包简介
Extra syntax for SilverStripe templating system.
README 文档
README
This module add extra syntaxes for SilverStripe templating system.
Installation
To install this module, simply run:
composer require syanaputra/silverstripe-extra-template-syntax
Usage
Repeat
Params:
- Total Repeat - How many times it has to repeat
- Starting Number - The starting number
Example:
<% loop $Repeat(3, 5) %>
{$Index}-
<% end_loop %>
Output:
5-6-7-
RepeatUntil
Params:
- Total Repeat - How many times it has to repeat
- Starting Number - The starting number
Example:
<% loop $RepeatUntil(5, 3) %>
{$Index}-
<% end_loop %>
Output:
3-4-5-
统计信息
- 总下载量: 603
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: BSD-2-Clause
- 更新时间: 2019-12-09