Filters can be executed with execFilter or execFilterSync, but in order to support synchronous execution, it appears the filter implementation must also be synchronous. I believe that making the filter synchronous won't have any ill-effects since execFilter wraps each filter in it's own promise.
I'm trying to call execFilterSync from a hexo helper, but helpers are always synchronous, and the filter blows up with an error. I can submit a PR to fix this.
Filters can be executed with
execFilter
orexecFilterSync
, but in order to support synchronous execution, it appears the filter implementation must also be synchronous. I believe that making the filter synchronous won't have any ill-effects sinceexecFilter
wraps each filter in it's own promise.I'm trying to call
execFilterSync
from a hexo helper, but helpers are always synchronous, and the filter blows up with an error. I can submit a PR to fix this.