Repository navigation
0.1.4
Bug Fix
CSS Template Variables Not Being Processed
Fixed an issue where CSS template variables like {containerWidth} and {backgroundColor} were not being replaced.
Root cause: CSS loaded via <link rel="stylesheet"> tags bypasses Vite's transform pipeline, so the TemplateEngine never processed them.
Fix: Changed to import CSS via a module script (import './style.css') so Vite's transform hook can process the template variables before injecting the styles.
Before
/* Browser received unprocessed CSS */
width: {containerWidth}px; /* Invalid CSS - dropped by browser */After
/* Browser receives processed CSS */
width: 500px; /* Valid CSS - styles applied */