yogthos/Selmer

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

Open

#234 建立於 2020年6月16日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)Clojure (670 star) (86 fork)batch import
enhancementhelp wantedquestion

描述

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.

貢獻者指南