In the process of creating an application where 1-5 views along with the corresponding model and controller are sent to the client upon page load. The user navigates through each view in sequence using routing, which is functioning correctly.
However, I am encountering a challenge with applying style rules to the view, as the styles are associated with the model. It's not possible to simply store CSS as text and inject it into a <style></style>
block. Additionally, adding a reference to a .css file is not feasible because all content is retrieved from a database, and different models may have conflicting style rules.
Looking for any suggestions on how to address this issue effectively.