MCPcopy
hub / github.com/pugjs/pug / applyPlugins

Function applyPlugins

packages/pug/lib/index.js:43–47  ·  view source on GitHub ↗
(value, options, plugins, name)

Source from the content-addressed store, hash-verified

41exports.cache = {};
42
43function applyPlugins(value, options, plugins, name) {
44 return plugins.reduce(function(value, plugin) {
45 return plugin[name] ? plugin[name](value, options) : value;
46 }, value);
47}
48
49function findReplacementFunc(plugins, name) {
50 var eligiblePlugins = plugins.filter(function(plugin) {

Callers 1

compileBodyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…