The #{…} notation
If you just need to concatenate some string to a value, you can use the Ruby like notation #{ ... }
var directive = {'li' : {'player <- players' : {'span.name' : 'Name: #{player.firstName} #{player.lastName}'}}
If you just need to concatenate some string to a value, you can use the Ruby like notation #{ ... }
var directive = {'li' : {'player <- players' : {'span.name' : 'Name: #{player.firstName} #{player.lastName}'}}