UNPKG

@christianwiedemann/drupal-twig-extensions

Version:

JavaScript implementation of Drupal’s Twig extensions

41 lines (38 loc) 1.23 kB
import { newEmptyStringFunction, newPassThroughFunction, } from '../helpers/twing.js'; import activeThemeFunction from './active_theme/twing.js'; import activeThemePathFunction from './active_theme_path/twing.js'; import { options as attachLibraryOptions, acceptedArguments as attachLibraryAcceptedArguments, } from './attach_library/definition.js'; import createAttributeFunction from './create_attribute/twing.js'; import fileUrlFunction from './file_url/twing.js'; import linkFunction from './link/twing.js'; import { options as pathOptions, acceptedArguments as pathAcceptedArguments, } from './path/definition.js'; import renderVarFunction from './render_var/twing.js'; import { options as urlOptions, acceptedArguments as urlAcceptedArguments, } from './url/definition.js'; const functions = [ activeThemeFunction, activeThemePathFunction, newEmptyStringFunction( 'attach_library', attachLibraryOptions, attachLibraryAcceptedArguments, ), createAttributeFunction, fileUrlFunction, linkFunction, newPassThroughFunction('path', pathOptions, pathAcceptedArguments), renderVarFunction, newPassThroughFunction('url', urlOptions, urlAcceptedArguments), ]; export default functions;