UNPKG

@rhofkens/mcp-quotes-server-claude-code

Version:

Model Context Protocol (MCP) server for managing and serving quotes

84 lines 2.03 kB
/** * MCP Quotes Server - Template Renderer * * Renders quote templates with variable substitution and formatting */ import type { IQuoteTemplate, ITemplateRenderContext, ITemplateRenderResult } from '../../../types/templates.js'; /** * Template renderer class */ export declare class TemplateRenderer { /** * Render a template with given context */ static render(template: IQuoteTemplate, context: ITemplateRenderContext): Promise<ITemplateRenderResult>; /** * Validate rendering context */ private static validateContext; /** * Apply default values for missing variables */ private static applyDefaults; /** * Substitute variables in template content */ private static substituteVariables; /** * Format a value for string substitution */ private static formatValue; /** * Apply template components */ private static applyComponents; /** * Evaluate a simple condition */ private static evaluateCondition; /** * Apply post-processors */ private static applyPostProcessors; /** * Apply a single post-processor */ private static applyPostProcessor; /** * Apply formatter post-processor */ private static applyFormatter; /** * Apply validator post-processor */ private static applyValidator; /** * Apply transformer post-processor */ private static applyTransformer; /** * Apply enricher post-processor */ private static applyEnricher; /** * Format output based on format type */ private static formatOutput; /** * Format content as Markdown */ private static formatAsMarkdown; /** * Format content as HTML */ private static formatAsHTML; /** * Format content as CSV */ private static formatAsCSV; /** * Format content as XML */ private static formatAsXML; } //# sourceMappingURL=templateRenderer.d.ts.map