Solid start at a resume generator. Should probably add an action to build the real thing so I can expose it

This commit is contained in:
2025-12-08 16:48:07 -06:00
commit 431e5d2999
12 changed files with 546 additions and 0 deletions

20
build.js Normal file
View File

@@ -0,0 +1,20 @@
const ejs = require('ejs');
const fs = require('fs');
const path = require('path');
// File paths
const dataPath = path.join(__dirname, 'content.json');
const templatePath = path.join(__dirname, 'template.ejs');
const outputPath = path.join(__dirname, 'generated_resume.html');
// Read data and template
const jsonData = JSON.parse(fs.readFileSync(dataPath, 'utf-8'));
const template = fs.readFileSync(templatePath, 'utf-8');
// Render HTML
const html = ejs.render(template, jsonData);
// Write the output
fs.writeFileSync(outputPath, html, 'utf-8');
console.log(`Successfully generated resume at ${outputPath}`);