Working towards differential building

This commit is contained in:
2022-08-27 16:50:50 +02:00
parent 9cf3bc3e27
commit 506f251a7b
6 changed files with 82 additions and 42 deletions

View File

@ -12,11 +12,11 @@
import os
from Modules.Utils import *
def PugCompileList(OutputDir, Pages):
def PugCompileList(OutputDir, Pages, LimitFiles):
# Pug-cli seems to shit itself with folder paths as input, so we pass ALL the files as arguments
Paths = ''
for File, Content, Titles, Meta in Pages:
if File.lower().endswith('.pug'):
if File.lower().endswith('.pug') and File in LimitFiles:
Path = f'{OutputDir}/{File}'
WriteFile(Path, Content)
Paths += f'"{Path}" '