fetch_svg is a powerful Smarty plugin designed for CMS Made Simple that streamlines SVG integration into your templates. The plugin fetches SVG files from your server and outputs them inline in your HTML, providing several key benefits: OPTIMIZATION - Removes XML/PHP processing instructions - Strips HTML comments and unnecessary whitespace - Compresses line breaks and tabs - Eliminates empty SVG groups - Reduces file size by 20-40% on average CONFLICT PREVENTION When you use multiple SVG files on the same page, duplicate IDs can cause rendering issues. This plugin automatically prefixes all IDs, href attributes, and url() references within each SVG to ensure uniqueness. This is especially important for SVGs containing gradients, masks, filters, and clip paths. PERFORMANCE - Optional caching system to avoid reprocessing the same SVG - Cache automatically invalidates when source files are modified - Significantly reduces server load when the same SVG is used multiple times FLEXIBILITY - Add CSS classes directly to SVG elements - Assign processed SVG to Smarty variables for reuse - Custom prefix support for advanced use cases - Compatible with all standard SVG features Perfect for modern websites that use inline SVGs for icons, logos, illustrations, and data visualizations.