Änderungen admin

This commit is contained in:
aschwarz
2023-03-20 17:22:01 +01:00
parent 83ce22c602
commit 4bb21bf23c
600 changed files with 112525 additions and 615 deletions

View File

@ -0,0 +1,19 @@
'use strict';
const upath = require('upath');
const sh = require('shelljs');
const renderPug = require('./render-pug');
const srcPath = upath.resolve(upath.dirname(__filename), '../src');
sh.find(srcPath).forEach(_processFile);
function _processFile(filePath) {
if (
filePath.match(/\.pug$/)
&& !filePath.match(/include/)
&& !filePath.match(/mixin/)
&& !filePath.match(/\/pug\/layouts\//)
) {
renderPug(filePath);
}
}