function leapYear(year) {
  return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
}
Replace placeholders in the template using the data object

@param  {Rule} rule
@param  {string} template
@param  {object} data
@return {string}