yogthos/Selmer

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

Open

#234 opened on Jun 16, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Clojure (121 forks)batch import
enhancementhelp wantedquestion

Repository metrics

Stars
 (1,042 stars)
PR merge metrics
 (No merged PRs in 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.

Contributor guide