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.

贡献者指南