yogthos/Selmer

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

Open

#234 geöffnet am 16. Juni 2020

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Clojure (86 Forks)batch import
enhancementhelp wantedquestion

Repository-Metriken

Stars
 (670 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 39m) (4 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide