yogthos/Selmer

Is it possible to apply a filter to the output of a tag?

Open

#234 ouverte le 16 juin 2020

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Clojure (86 forks)batch import
enhancementhelp wantedquestion

Métriques du dépôt

Stars
 (670 stars)
Métriques de merge PR
 (Merge moyen 39m) (4 PRs mergées en 30 j)

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.

Guide contributeur