packages/okam-build/lib/processor/template/plugins/filter/quick-filter-plugin.js
function transformFilterInAttribute(element, tplOpts, options) {
    let attrs = element.attribs;
    let filterAttrs = element._hasFilterAttrs;
    if (!filterAttrs || !filterAttrs.length) {
        return;
    }

    let {logger, file} = tplOpts;
    let {filters} = options;
    filterAttrs.forEach(k => {
        let value = attrs[k];
        attrs[k] = updateFilterCall(filters, logger, file, value);
    });
}
function transformFilterInAttribute(element, tplOpts, options) {
    let attrs = element.attribs;
    let filterAttrs = element._hasFilterAttrs;
    if (!filterAttrs || !filterAttrs.length) {
        return;
    }

    let {logger, file} = tplOpts;
    let {filters} = options;
    filterAttrs.forEach(k => {
        let value = attrs[k];
        attrs[k] = updateFilterCall(filters, logger, file, value);
    });
}
function transformFilterInAttribute ( element , tplOpts , options ) { let attrs = element . attribs ; let filterAttrs = element . _hasFilterAttrs ; if ( ! filterAttrs || ! filterAttrs . length ) { return ; } let { logger , file } = tplOpts ; let { filters } = options ; filterAttrs . forEach ( k => { let value = attrs [ k ] ; attrs [ k ] = updateFilterCall ( filters , logger , file , value ) ; } ) ; }
Transform element node filter info

@param {Object} element the element node to transform
@param {Object} tplOpts the template transform options
@param {Object=} options the plugin options, optional
Transform element node filter info