changed template handling {{}}