Here is the Python example
>>> 'Coordinates: {latitude}, {longitude}'.format(latitude='37.24N', longitude='-115.81W')
'Coordinates: 37.24N, -115.81W'
I am looking for a way to emulate this behavior in JavaScript. As I have plenty of templates strings as """{} lorem {} ipsum"""
and bunch of JSON objects as k,v pairs that correspond to parameters & values.
I hate to implement my own parser if something equivalent already exist. Any similar libraries would be much appreciated.