yogthos/Selmer

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

オープン

#234 opened on 2020/06/16

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Clojure (121 件のフォーク)batch import
enhancementhelp wantedquestion

Repository metrics

Stars
 (1,042 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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.

コントリビューターガイド