I use a specific library where I can pass variables with such an hash:
{ 'username' = > 'John'}
But when I try to pass the variables with such an hash:
{ 'username': 'John' }
It doesn't work. I always thought =>
is the old syntax for :
but there seems to be really a difference.
Code where it's used: Liquid::Template.parse(template).render!(variables).html_safe
Can you please explain the difference and tell me how I can convert such an hash: { 'username': 'John' }
to this { 'username' = > 'John'}
presentation?