syanaputra / silverstripe-extra-template-syntax
Extra syntax for SilverStripe templating system.
Installs: 583
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/syanaputra/silverstripe-extra-template-syntax
Requires
This package is auto-updated.
Last update: 2025-10-22 14:38:42 UTC
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-