As [id://Japhy] suggests, it seems you are looking for a text templating system. One of the simplest ones out there is Text-Template.
In reply to Re: Reading from txt makes variables literal?
by crashtest
in thread Reading from txt makes variables literal?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |