Add keyvalue template filter