From 84874513961f55c044e577d5d454bb16963f3158 Mon Sep 17 00:00:00 2001 From: Alexander Grimalovsky Date: Mon, 18 Nov 2019 14:34:31 +0300 Subject: [PATCH] Expose Twig through Hexo Twig renderer to allow extensions --- lib/renderer.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/renderer.js b/lib/renderer.js index 53b33fa..ab88812 100755 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -26,4 +26,6 @@ twigRenderer.compile = function(data) { } }; +twigRenderer.twig = Twig; + module.exports = twigRenderer;