yogthos/Selmer
Is it possible to apply a filter to the output of a tag?
Aperta
#234 aperta il 16 giu 2020
enhancementhelp wantedquestion
Metriche repository
- Star
- (1042 stelle)
- Metriche merge PR
- (Nessuna PR mergiata in 30 g)
Descrizione
I have a custom tr tag that returns internationalized strings from a dictionary, and I'd like to apply a Selmer filter to its output. Is that possible?
As a simple example: say {% tr core/greeting %} parses to Hello or Hola depending on a user's current language preference, and I'd like to then apply |upper to the output of that tag.