add support for json variables in template
update readme