dev-master
9999999-devLatte Filter for gender detection and salutation.
New BSD
The Requires
- php >=5.3.1
- nette/nette ~2.3
- haltuf/genderer ~0.1
The Development Requires
filter latte name gender czech salutation
Latte Filter for gender detection and salutation.
Latte filter to detect, (*2)
Easiest way to install is to add this line to your composer.json
file:, (*3)
"require": { "haltuf/gender-helper": "dev-master" }
or, (*4)
composer require haltuf/gender-helper:@dev
Then register the extension in your config.neon
file:, (*5)
extensions: genderHelper: Haltuf\GenderHelper\DI\Extension
You can use 2 new filters in your Latte templates:, (*6)
{var $name = 'Tomáš Vomáčka'} {$name|salute} Tomáši Vomáčko {$name|gender} m {$name|gender:'muž':'žena'} muž
Optionally, you can change the name of the filters in the config.neon file:, (*7)
genderHelper: salutationFilter: 'oslov' genderFilter: 'pohlavi'
Latte Filter for gender detection and salutation.
New BSD
filter latte name gender czech salutation