User-facing string interpolation in Rails

A couple of months ago I made a gem to help with string interpolation in
Rails. If you ever find yourself needing to allow users to insert
variables
into strings which they provide, this gem may be quite useful to you.
You
basically define a list of variables which can be “inserted” on a model
and
then allow users to insert them by entering something like
“{{user.first_name}}”. You can also register and use various formatters
to
allow the user to decide how they should appear (e.g.
“{{user.first_name.upcase}}”).

I’ve love to hear any feedback and if anyone has any ideas of additional
things it would be useful it did.

https://adamcooke.io/string-interpolation-in-ruby/