docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10
Build an email newsletter template system that supports custom font configurations. The system should allow users to define multiple custom fonts and generate responsive HTML emails that properly load only the fonts actually used in the template.
Create a module that accepts a list of custom font definitions and generates an email template with proper font loading. Each font definition includes:
The system should:
/**
* Generates an HTML email with custom font support
*
* @param {Object} config - Email configuration
* @param {Array<{name: string, url: string}>} config.fonts - Custom font definitions
* @param {Array<{text: string, fontFamily: string}>} config.sections - Text sections with font assignments
* @returns {string} HTML email output
*/
function generateNewsletterEmail(config) {
// Implementation
}
module.exports = { generateNewsletterEmail };Provides email template generation and responsive HTML output with font management capabilities.