Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #36118
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2019-03-14 07:00 -0700 |
| References | <22440663-d4d8-496c-926c-b1af146faaa5@googlegroups.com> <3e7cf907-0e16-4230-9ea5-f7629092fb62@googlegroups.com> |
| Message-ID | <008e933d-9925-4969-bb63-9fb0df9727bf@googlegroups.com> (permalink) |
| Subject | Re: Server side JS programming |
| From | groovee@cyberdude.com |
On Thursday, 14 March 2019 07:46:52 UTC+5:30, Michael Haufe (TNO) wrote: > gro...@cyberdude.com wrote: > > Hi, > > I think I've asked this question before over here, but it seems to have slipped my mind what was said - I'd like to know: is there any way to do server side programming in JS to generate a webpage, with the code bits "inserted" into the HTML bits, like <?php does for PHP? Otherwise, how would you say, print stuff from a MySQL database (assuming you're using node.js) on a webpage? You'd need some way to separately print the MySQL data, and *then* (if it comes afterwards) print the rest of the HTML. Ugh! This is Horrifying! Surely there must be a better solution? > > Just use express: > > <https://expressjs.com/> Thanks muchly for that Michael, this looks very interesting indeed! But there's quite a bit of stuff to wade through on that site - would it be asking too much for you to post just a snip of code showing me how to use ExpressJS to intersperse HTML with Javascript code?? :) (my head is kind of spinning reading all that stuff about "template engines" and whatnot on that site - I'm still not *that* adept at JS yet... :) (what's a "template engine", exactly?)) Thanks again for your help.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Server side JS programming groovee@cyberdude.com - 2019-03-12 06:17 -0700
Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-12 22:03 +0100
Re: Server side JS programming groovee@cyberdude.com - 2019-03-13 06:14 -0700
Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-13 15:14 +0100
Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-13 15:36 +0100
Re: Server side JS programming groovee@cyberdude.com - 2019-03-14 07:04 -0700
Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-15 12:25 +0000
Re: Server side JS programming "Mark-" <nospam@mapson.xyz> - 2019-03-15 12:49 +0000
Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-17 16:02 +0100
Re: Server side JS programming John G Harris <niam@jghnorth.org.uk.invalid> - 2019-03-17 15:34 +0000
Re: Server side JS programming "Mark-" <nospam@mapson.xyz> - 2019-03-17 17:06 +0000
Re: Server side JS programming groovee@cyberdude.com - 2019-03-17 20:32 -0700
Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-18 12:49 -0700
Re: Server side JS programming groovee@cyberdude.com - 2019-03-19 06:20 -0700
Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-19 14:23 +0000
Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-19 12:05 -0700
Re: Server side JS programming Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2019-03-19 18:23 +0100
Re: Server side JS programming Jon Ribbens <jon+usenet@unequivocal.eu> - 2019-03-13 15:22 +0000
Re: Server side JS programming "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2019-03-13 19:16 -0700
Re: Server side JS programming groovee@cyberdude.com - 2019-03-14 07:00 -0700
Re: Server side JS programming groovee@cyberdude.com - 2019-03-19 13:52 -0700
Re: Server side JS programming "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2019-03-19 23:15 +0100
csiph-web