docudigger
docudigger copied to clipboard
File name should be able to be changed by the user with template variables
Currently the filename is fixed. This should be changed toi enable the user to set the filename by his needs.
We don't need any template library, we can achieve this by typescript only:
let stringWithVars = (str, obj) => str.replace(/\${(.*?)}/g, (x,g)=> obj[g]);
But this only applies when there is no computation or advanced formatting needed. Everything else needs a template engine like Handlebars or somethign else.
What do you think @fwartner?
Hi, @Disane87. I'm Dosu, and I'm helping the docudigger team manage their backlog. I'm marking this issue as stale.
Issue Summary:
- Enhancement proposal to customize filenames using template variables.
- Current system uses fixed filenames; proposal aims for more flexibility.
- Suggested a TypeScript solution for basic variable replacement.
- Mentioned the need for a template engine like Handlebars for complex formatting.
- Awaiting feedback from @fwartner on the proposed approach.
Next Steps:
- Please confirm if this issue is still relevant to the latest version of the docudigger repository. If so, you can keep the discussion open by commenting here.
- If there is no further activity, this issue will be automatically closed in 7 days.
Thank you for your understanding and contribution!