yogthos/Selmer

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

開放

#234 建立於 2020年6月16日

 (2 則留言) (0 個反應) (0 位負責人)Clojure (121 個分叉)batch import
enhancementhelp wantedquestion

倉庫指標

星標
 (1,042 顆星)
PR 合併指標
 (30 天內沒有已合併 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.

貢獻者指南