Extending template engine

If you need to extend your template engine, you can do that by requiring it in your config file via engine.instance and passing it to miyagi.

This is an example for twig:

const twig = require("twig");

twig.extendFunction("customFunction", function customFunction() { ... });

module.exports = {
  ...
  engine: {
    instance: twig.twig,
  },
  ...
}