html - What logic goes where: express + jade/ejs + html5 + css + websockets -


ok. i'm trying learn node.js/express , want clarify how jade/ejs, html, , css fit together. correct me if i'm wrong:

  1. application logic done in node.js/express
  2. some of logic/variables passed jade/ejs html engine dynamically serve html
  3. css still formats served html depending on requesting device.

forgive me, seems lines starting blur js; it's hard tell logic should done in node.js/express , logic should done in jade/ejs.

this gets blurrier when using websockets, since there logic going on client-side. there's display control logic going on @ 5 different places.

you pretty have it! here tutorial think clear confusion if have time take @ it. uses of modules mentioned , job explaining role of each element is.

http://net.tutsplus.com/tutorials/javascript-ajax/real-time-chat-with-nodejs-socket-io-and-expressjs/


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -