MCPcopy
hub / github.com/11ty/buildawesome / addJavaScriptFunction

Method addJavaScriptFunction

src/UserConfig.js:597–602  ·  view source on GitHub ↗
(name, callback)

Source from the content-addressed store, hash-verified

595
596 // Both Filters and shortcodes feed into this
597 addJavaScriptFunction(name, callback) {
598 this.#add(this.javascript.functions, name, callback, {
599 description: "JavaScript Function",
600 functionName: "addJavaScriptFunction",
601 });
602 }
603
604 /*
605 * Custom Tags

Callers 7

addJavaScriptFilterMethod · 0.95
EleventyTest.jsFile · 0.80
UserConfigTest.jsFile · 0.80
eleventyRenderPluginFunction · 0.80

Calls 1

#addMethod · 0.95

Tested by

no test coverage detected