Filter 在代码中使用chicagoboss内置过滤器(模板外部)

Filter 在代码中使用chicagoboss内置过滤器(模板外部),filter,erlang,chicagoboss,Filter,Erlang,Chicagoboss,我使用filteradd创建动态选项卡索引 {{tabindex_offset|add:1}} 但它似乎为未定义的tabindex\u偏移量抛出了错误。 因此,希望添加如下自定义过滤器: {{tabindex_offset|add:1}} add_by_custom(undefined, Count) ->Count; add_by_custom(TabindexOffset, Count) -> chicagoboss_built_in_filter_module

我使用filter
add
创建动态选项卡索引

{{tabindex_offset|add:1}}
但它似乎为
未定义的
tabindex\u偏移量抛出了错误。
因此,希望添加如下自定义过滤器:

{{tabindex_offset|add:1}}
add_by_custom(undefined, Count) ->Count;
add_by_custom(TabindexOffset, Count) ->
       chicagoboss_built_in_filter_module:add(TabindexOffset, Count).
有没有办法调用代码中的内置过滤器

{{tabindex_offset|add:1}}