How gbrath23/templategenerator works
TemplateGenerator is an Electron desktop app intended to turn a selected CSV into hierarchical CTGO and JSON template files. The user selects or drops a CSV, chooses output paths, and starts processing through the renderer; the main process handles dialogs and processing IPC, while TemplateScript.js parses rows and constructs labels, nested tags, and notes before writing outputs. A significant wiring mismatch limits this workflow: main.js imports and calls processCsvAndGenerateJson, but TemplateScript.js exports processCsvAndGenerateFiles, so processing currently fails. Source excerpts do not establish further UI markup or progress behavior.
Main entry points: main.js Window, dialogs, IPC · renderer.js File selection and status UI · TemplateScript.js CSV template generator
Components 7
Desktop interface
- File selection and status UI
renderer.js
Electron host
- Window, dialogs, IPC
main.js
CSV conversion
- CSV template generator
TemplateScript.js
Other components
- User
- CSV input
- CTGO output
- JSON output
Connections 9
- User → File selection and status UI: selects files
- File selection and status UI → Window, dialogs, IPC: invokes dialogs
- Window, dialogs, IPC → File selection and status UI: returns paths
- File selection and status UI → Window, dialogs, IPC: sends process event
- Window, dialogs, IPC → CSV template generator: calls missing export
- CSV template generator → CSV input: reads
- CSV template generator → CTGO output: writes encoded data
- CSV template generator → JSON output: writes formatted data
- Window, dialogs, IPC → File selection and status UI: replies status