Add simple templating with pug

This commit is contained in:
Tom Raithel
2017-01-22 22:29:02 +01:00
parent bd6e4ebc1c
commit 0dde930d64
7 changed files with 41 additions and 38 deletions

6
scripts/template.js Normal file
View File

@@ -0,0 +1,6 @@
import pug from 'pug';
import { relativePath } from './file';
const templateFolder = 'templates';
export const item = pug.compileFile(relativePath(templateFolder, 'item.pug'));