Twig engine by itself is extensible with custom filters and functions and Hexo have support for local scripts to allow such extensions.
But in order to be able to apply extensions to Twig it is necessary to have Twig itself to be exposed. This simple PR allows local scripts and Hexo plugins to access Twig engine, used by renderer.
Twig engine by itself is extensible with custom filters and functions and Hexo have support for local scripts to allow such extensions.
But in order to be able to apply extensions to Twig it is necessary to have Twig itself to be exposed. This simple PR allows local scripts and Hexo plugins to access Twig engine, used by renderer.