yogthos/Selmer
Ver no GitHubIs it possible to apply a filter to the output of a tag?
Open
#234 aberto em 16 de jun. de 2020
enhancementhelp wantedquestion
Métricas do repositório
- Stars
- (670 stars)
- Métricas de merge de PR
- (Mesclagem média 39m) (4 fundiu PRs em 30d)
Description
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.