Scaffold finance pack gen-0

This commit is contained in:
Alexa Amundson
2025-11-24 02:28:57 -06:00
parent 1a98cf6e64
commit a11f0b4e92
24 changed files with 586 additions and 1 deletions

17
lib/template.ts Normal file
View File

@@ -0,0 +1,17 @@
import fs from "fs";
import Handlebars from "handlebars";
export function renderTemplate(templatePath: string): string {
const source = fs.readFileSync(templatePath, "utf8");
const template = Handlebars.compile(source);
return template({ period: "2025-11", month: "2025-11" });
}
if (require.main === module) {
const file = process.argv[2];
if (!file) {
throw new Error("Template path required");
}
const output = renderTemplate(file);
process.stdout.write(output);
}