evanmoran / oj

Unified web templating for the people. Thirsty people.
MIT License
444 stars 7 forks source link

oj "inlineHtml" jquery plugin doesn't insert css correctly #21

Open evanmoran opened 5 years ago

evanmoran commented 5 years ago

Should be an easy fix, but tracking this here for now.

evanmoran commented 5 years ago

The solution is to maintain a global cssMap (see code, to understand). Then as inline css insertions happen, bulk extend the cssMap and regenerate the oj-style element with oj.compile