mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
fix: formatted transaction type
This commit is contained in:
@@ -2,6 +2,6 @@ import * as path from 'path';
|
||||
import * as pug from 'pug';
|
||||
|
||||
export function templateRender(filePath: string, options: Record<string, any>) {
|
||||
const basePath = path.join(global.__resources_dir, '/views');
|
||||
return pug.renderFile(`${basePath}/${filePath}.pug`, options);
|
||||
const templatePath = path.join(global.__views_dirname, `${filePath}.pug`);
|
||||
return pug.renderFile(templatePath, options);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user