As I delve into learning node.js/express, a question arises about how jade/ejs, html, and css work in harmony. Allow me to share my understanding:
- The application logic is implemented in node.js/express
- A portion of this logic/variables is injected into the jade/ejs html engine to dynamically generate html
- CSS continues to style the generated html based on the requesting device.
At times, it feels like the boundaries between these technologies are blurring due to the heavy presence of JavaScript. Deciphering where to allocate logic – node.js/express or jade/ejs – becomes challenging.
This complexity further intensifies when websockets come into play, adding another layer of client-side logic. Henceforth, we find ourselves juggling display control logic across five different entities.