https://github.com/wavevision/latte-filters
☕️ Extra filters for Latte (@nette) templating engine
https://github.com/wavevision/latte-filters
filters latte latte-filters nette
Last synced: 5 months ago
JSON representation
☕️ Extra filters for Latte (@nette) templating engine
- Host: GitHub
- URL: https://github.com/wavevision/latte-filters
- Owner: wavevision
- License: mit
- Archived: true
- Created: 2019-12-19T12:41:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-21T17:28:04.000Z (almost 4 years ago)
- Last Synced: 2025-11-27T16:43:19.997Z (6 months ago)
- Topics: filters, latte, latte-filters, nette
- Language: PHP
- Homepage:
- Size: 265 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Latte Filters
[](https://github.com/wavevision/latte-filters/actions/workflows/ci.yml)
[](https://coveralls.io/github/wavevision/latte-filters?branch=master)
[](https://github.com/phpstan/phpstan)
Set of extra [nette/latte](https://github.com/nette/latte) filters.
## Installation
Via [Composer](https://getcomposer.org)
```bash
composer require wavevision/latte-filters
```
## Contents
- [CzechMonth](./src/LatteFilters/CzechMonth/CzechMonth.php) – render months translated to Czech (incl. inflected version)
- [Email](./src/LatteFilters/Email/Email.php) – render [ProtectedEmail](./src/LatteFilters/Email/ProtectedEmail.php) addresses (HEX encoded)
- [Mtime](./src/LatteFilters/Mtime/Mtime.php) – render filenames with timestamp appeneded to bust caches
## Usage
To use all filters, simply include `common.neon` from this package in your project config:
```neon
includes:
- %vendorDir%/wavevision/latte-filters/config/common.neon
```
Alternatively, you can register only wanted filters separately, e.g.:
```neon
services:
- Wavevision\LatteFilters\CzechMonth\CzechMonth
nette.latteFactory:
setup:
- addFilter('czechMonth', [@Wavevision\LatteFilters\CzechMonth\CzechMonth, 'process'])
```
