Add simple templating with pug
This commit is contained in:
6
scripts/template.js
Normal file
6
scripts/template.js
Normal 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'));
|
||||
Reference in New Issue
Block a user