Rename templateEngine to template for consistency