How to use the twig.extendTest function in twig

To help you get started, we’ve selected a few twig examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github radiocity / twig-html-loader / index.js View on Github external
      Object.entries(query.tests).forEach(([name, fn]) => Twig.extendTest(name, fn));
    }