ablipan / hexo-renderer-twig

hexo-renderer-twig
MIT License
2 stars 4 forks source link

Expose Twig through Hexo Twig renderer #7

Closed FlyingDR closed 4 years ago

FlyingDR commented 4 years ago

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.

FlyingDR commented 4 years ago

@ablipan thanks for merging these pull requests, will you mind to tag new release and publish it on npmjs? Thanks

ablipan commented 4 years ago

OK~