aboutsummaryrefslogtreecommitdiff
path: root/src/templates.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates.ts')
-rw-r--r--src/templates.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/templates.ts b/src/templates.ts
index 648bb56..26451cf 100644
--- a/src/templates.ts
+++ b/src/templates.ts
@@ -1,6 +1,9 @@
import handlebars from "handlebars";
import fs from "fs";
+/**
+ * Information for processing a template file into the output file
+ */
export interface Template {
inputFile: string;
outputFile: string;
@@ -8,6 +11,9 @@ export interface Template {
data?: string;
}
+/**
+ * Process input file and produce file at given output location
+ */
export default async (_template: Template): Promise<Template> => {
const buffer = await fs.promises.readFile(_template.inputFile, "utf-8");