Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35914

Laying out node.js like PHP..?

Newsgroups comp.lang.javascript
Date 2018-12-21 01:24 -0800
Message-ID <bcd9af5a-c8ed-469b-ae91-edaa5bdef6b5@googlegroups.com> (permalink)
Subject Laying out node.js like PHP..?
From groovee@cyberdude.com

Show all headers | View raw


I'm just starting to find about node.js and server side JS, so I was wondering - you know, in PHP, when you want to start writing some PHP in the HTML, you put a "<? php" in the code, ie. it lives *inside the HTML*, and the server is smart enough to start up the PHP interpreter at the appropriate points? Is there some way to accomplish that kind of thing in node.js, ie. MIX node.js and HTML in one document??? 
I'm probably talking rubbish, but - is there some way? :) (Hell of a hard time having the JS program keep on spitting out HTML in console.log statements otherwise (or however it's done...?!)).

Thanks.

Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Laying out node.js like PHP..? groovee@cyberdude.com - 2018-12-21 01:24 -0800
  Re: Laying out node.js like PHP..? JJ <jj4public@vfemail.net> - 2018-12-22 05:44 +0700
    Re: Laying out node.js like PHP..? Luuk <luuk@invalid.lan> - 2018-12-22 10:32 +0100
      Re: Laying out node.js like PHP..? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2018-12-22 12:40 +0100
      Re: Laying out node.js like PHP..? rbowman <bowman@montana.com> - 2018-12-22 11:58 -0700
        Re: Laying out node.js like PHP..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-12-22 20:16 +0100
          Re: Laying out node.js like PHP..? Ram Tobolski <ramtob@gmail.com> - 2018-12-23 02:22 -0800
            Re: Laying out node.js like PHP..? Julio Di Egidio <julio@diegidio.name> - 2018-12-23 05:40 -0800
            Re: Laying out node.js like PHP..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-12-25 00:02 +0100
    Re: Laying out node.js like PHP..? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2018-12-22 20:03 +0100

csiph-web