Is there any way to get E4X(ECMAScript) to work with NodeJS?
It would really help to output slick html/xml without hassle/noise.
It works fine using SpiderMonkey since it is natively implemented, but it doesn't seem to work with NodeJS.
using node
$node
> var name = "World";
> var p = <p>Hello {name}</p>;
...
using spidermonkey
$js
js> var name = "World";
js> var p = <p>Hello {name}</p>;
Hello World
js>
thanks in advance
p = """Hello #{name}"""
. 3 quotation marks also allows you to have newlines inside strings. – Ophthalmoscope