fileloader
more stable file loader for nunjucks, and support charsets like gbk
.
Install
$ npm install fileloader
Usage
const nunjucks = ;const FileLoader = ;const cluster = ; let watch = true;if clusterisWorker { process; }; const dirs = '/foo' '/bar/cms';const charsets = '/bar/cms': 'gbk'; const fileloader = dirs watch charsets;const env = fileloader;