Ignore double curly braces in CoTemplate, fixes #1227