escaping of curly braces in templates