Add support for non-string keys, also
This handles the edge case of things like { 3 : "abc" }.
@@ -76,7 +76,7 @@ class MustacheDialogRenderer(object):
index %= len(template_functions)
line = template_functions[index]
for k, v in context.items():
- line = line.replace('{{' + k + '}}', str(v))
+ line = line.replace('{{' + str(k) + '}}', str(v))
return line
