mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-06-06 01:49:02 +00:00
8 lines
267 B
TypeScript
8 lines
267 B
TypeScript
import * as path from 'path';
|
|
import * as pug from 'pug';
|
|
|
|
export function templateRender(filePath: string, options: Record<string, any>) {
|
|
const templatePath = path.join(global.__views_dirname, `${filePath}.pug`);
|
|
return pug.renderFile(templatePath, options);
|
|
}
|