I can't strongly formulate what I need now, but the idea is this:
User inputs some string that looks like a template
'Welcome to #{country}!' # or 'Welcome to %%country%%!', it's not essential
Is there some gem (or may be standard tool like Erb), that could do 2 things:
Validate given string (i.e. if I allow to pass only
countryas parameter, strings with another parameters will not be valid)Interpolate given string with passed parameters (i.e.
some_method('Welcome to #{country}!', country: 'Russia')) # => 'Welcome to Russia!')