Skip to content

v0.2.3

Latest
Compare
Choose a tag to compare
@mgrsskls mgrsskls released this 10 Jan 20:16
· 4 commits to main since this release

Allows overriding the twig functions defined by this package. This can be done like this:

// miyagi.js

const twigLaravel = require("@miyagi/twig-laravel");
const twig = require("twig");

twig.extendFunction("asset", (asset) => {
	return "what you want";
});

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