[CB] -- changed scala templates to freemarker