wavevision / latte-filters
Extra filters for Latte template engine.
Installs: 1 880
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 0
Open Issues: 3
Requires
- php: >=7.4
- nette/http: ^3.0
- wavevision/utils: ^2.1
Requires (Dev)
This package is auto-updated.
Last update: 2024-08-21 22:25:22 UTC
README
Latte Filters
Set of extra nette/latte filters.
Installation
Via Composer
composer require wavevision/latte-filters
Contents
- CzechMonth – render months translated to Czech (incl. inflected version)
- Email – render ProtectedEmail addresses (HEX encoded)
- Mtime – render filenames with timestamp appeneded to bust caches
Usage
To use all filters, simply include common.neon
from this package in your project config:
includes: - %vendorDir%/wavevision/latte-filters/config/common.neon
Alternatively, you can register only wanted filters separately, e.g.:
services: - Wavevision\LatteFilters\CzechMonth\CzechMonth nette.latteFactory: setup: - addFilter('czechMonth', [@Wavevision\LatteFilters\CzechMonth\CzechMonth, 'process'])