4 ms·
Hmm, what if you could specify file names as a field in a row and have them automatically read and injected as the field? -- Example: I have the following CS
by zachlatta 13y ago
Hmm, what if you could specify file names as a field in a row and have them automatically read and injected as the field?
--
Example:
I have the following CSV:
Name,Email,Message
Jane Doe,jane@janedoe.com,janedoe.txt
John Doe,john@johndoe.com,Hello!
And the following template:
Hello {{.Name}}! {{.Message}}
`janedoe.txt` reads:
The weather is nice outside!
Generated output:
Hello Jane Doe! The weather is nice outside!
Hello John Doe! Hello!
--
Would that satisfy your use case?