MCPcopy
hub / github.com/angular/angularfire / registerShortcodes

Function registerShortcodes

site/.eleventy.js:86–92  ·  view source on GitHub ↗
(eleventyConfig)

Source from the content-addressed store, hash-verified

84}
85
86function registerShortcodes(eleventyConfig) {
87 const { shortcodes } = require('./src/shortcodes');
88 shortcodes.forEach(shortcode => {
89 console.log(`Creating shortcode: ${shortcode.name} as ${shortcode.type}`);
90 eleventyConfig[shortcode.type](shortcode.name, shortcode.create);
91 });
92}

Callers 1

.eleventy.jsFile · 0.85

Calls 1

forEachMethod · 0.65

Tested by

no test coverage detected