I have rails background and i'm working to implement something like as shown in the image[![enter image description here](https://i.stack.imgur.com/R0yK9.png)](https://i.stack.imgur.com/R0yK9.png)

My email template will have such tags. While sending the email to the client, his information will get filled up in the template. I found this link [here](https://stackoverflow.com/questions/27540118/dynamic-values-in-email-template) but there's no answer. I looked up and found [this](https://github.com/code-and-effect/effective_email_templates)gem, however i cant use it as it uses liquid templates and i was unable to implement it because of time limitation.

I know i can do the whole thing of finding `{{first_name}}` and replacing the content whenever a tag appears but i doubt if its an efficient way to implement it.

Please share your ideas and guidance. Thanks in Advance :)