use express with it's static middleware. it's totally for dynamic webapps. as well as java servlets (tomcat) as wamp (php) using some kind of templating mechanism to transform dynamic data into html. if you mean with "as i am using wamp" that you want develop it like in php, then ejs templating engine could help your here, since it's the closest to plain html and default php-style templating. and you can skip stylus totally. use the static middleware to deliver static html and css, use ejs for views and setup request handlers for your ajax endpoints.
Am Dienstag, 19. Februar 2013 15:37:54 UTC+1 schrieb kanitkar...@gmail.com: > > I would like to repeat here that both html, css & js files & Node server > files are in the same domain. > > On Tuesday, February 19, 2013 8:05:53 PM UTC+5:30, kanitkar...@gmail.comwrote: >> >> Hi, >> >> I would like to do the following, >> >> 1) Have regular .html .css & .js files just like a normal web app >> >> 2) Interact with Node Js only through Ajax calls >> >> 3) But All files mentioned in 1) are also hosted on the same Node Http >> server. >> >> So when I say http://localhost:3000/index.html, Node Js server should >> give me index.html along with all css & js files included in it. >> >> Then my Javascript & Ajax code should drive the functionality with Node >> program getting called by ajax request. >> >> Can anyone please please suggest me the best way to do this ? >> >> I don't want to use Jade or Stylus. I want to develop as if I am using >> tomcat or wamp server & use power of Node where ever needed only. >> >> I am aware of express js framework but don't know how it will be useful >> for above scenario. >> > -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.