PHPackages                             moo/template-tags - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. moo/template-tags

ActiveSilverstripe-vendormodule[Templating &amp; Views](/categories/templating)

moo/template-tags
=================

Provide a several useful template tags.

3.0.0(3y ago)32.6k↓33.3%[1 issues](https://github.com/satrun77/silverstripe-template-tags/issues)MITPHPPHP &gt;=7.4

Since Nov 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/satrun77/silverstripe-template-tags)[ Packagist](https://packagist.org/packages/moo/template-tags)[ RSS](/packages/moo-template-tags/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (7)Versions (10)Used By (0)

Template Tags
=============

[](#template-tags)

###### SilverStripe template parser

[](#silverstripe-template-parser)

[![Build Status](https://camo.githubusercontent.com/5d6b928d01ab1b35aeec365c76bb09e2c2bc105f67a19da797c75672dec9739d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73617472756e37372f73696c7665727374726970652d74656d706c6174652d746167732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/satrun77/silverstripe-template-tags/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/9644240ab92653ce40531f1a5aa849ebda6db0ea245e078765a895d7f289c9b9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73617472756e37372f73696c7665727374726970652d74656d706c6174652d746167732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/satrun77/silverstripe-template-tags/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/3a5ed696fb021adf4e481c0ce7c49fbdcb1bcb88d95484a08fe566e06e12e4ce/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73617472756e37372f73696c7665727374726970652d74656d706c6174652d746167732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/satrun77/silverstripe-template-tags/?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/f86973ad95a886ce664ca709ccd9c59962bafc18ade32b3587f1ec387d33441c/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f2f74656d706c6174652d746167732f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/moo/template-tags)[![License](https://camo.githubusercontent.com/6ce2d9cd70a2c18781ae556af23b3eeea3283eaf5063143614b72c94af3d50d2/68747470733a2f2f706f7365722e707567782e6f72672f6d6f6f2f74656d706c6174652d746167732f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/moo/template-tags)

Provide a several template tags for better template implementation. For example an improved ``.

Requirements
------------

[](#requirements)

- SilverStripe CMS ^5.0

Installation via Composer
-------------------------

[](#installation-via-composer)

```
composer require moo/template-tags

```

Usage
-----

[](#usage)

### Spaceless

[](#spaceless)

Remove extra whitespaces from around the template syntax &amp; HTML output.

```

    ... Template syntax and HTML ...

```

### Template

[](#template)

An alternative to ``

```

    $ClassName

        Github user: {$ClassName}-{$ID}-{$MenuTitle.XML}

    Hello world

```

#### Ways to define template name

[](#ways-to-define-template-name)

- By string

```

```

- By variable or method within an object

```

```

#### The body of the template tag

[](#the-body-of-the-template-tag)

- The body of the tag can include HTML, template logic, &amp; defined arguments.

```

    Hello world

```

- The body of the block can include other syntax such as &lt;% include %&gt;

```

    Hello world

```

- You can pass parameters, one per line! not all in same line as '&lt;% include %&gt;

```

    $Theme

        Github user: {$Member.Name}

    Hello world

```

TemplateName.ss `` Placeholder for the content of the template ie. `Hello world`

```

   Are you a {$Someone}

```

License
-------

[](#license)

This module is under the MIT license. View the [LICENSE](LICENSE.md) file for the full copyright and license information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~315 days

Recently: every ~386 days

Total

6

Last Release

1169d ago

Major Versions

1.0.1 → 2.0.02021-11-01

2.0.0 → 3.0.02022-07-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/531e6ca1951a4d5d68e4b7c7c3284fe56ffda52d2998b4e4d252bf48ce52ea75?d=identicon)[satrun77](/maintainers/satrun77)

---

Top Contributors

[![satrun77](https://avatars.githubusercontent.com/u/166450?v=4)](https://github.com/satrun77 "satrun77 (23 commits)")

---

Tags

phpsilverstripesilverstripe-4silverstripe-templatetemplatesilverstripetemplate

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/moo-template-tags/health.svg)

```
[![Health](https://phpackages.com/badges/moo-template-tags/health.svg)](https://phpackages.com/packages/moo-template-tags)
```

###  Alternatives

[silverstripe/login-forms

A collection of templates for the CMS login screens

191.3M26](/packages/silverstripe-login-forms)[stevie-mayhew/silverstripe-svg

Basic SVG support for SilverStripe

23326.5k4](/packages/stevie-mayhew-silverstripe-svg)[silverstripe-themes/simple

The SilverStripe simple theme (default SilverStripe 3 theme)

411.3M8](/packages/silverstripe-themes-simple)[symbiote/silverstripe-listingpage

A module that allows CMS users to create templated listing pages.

1012.7k2](/packages/symbiote-silverstripe-listingpage)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
