Fix App.jsx two-page workflow JSX render and update study app layout

This commit is contained in:
nmemmert
2026-05-26 17:14:30 -04:00
commit f47a41ce6f
4459 changed files with 1059845 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
var http = require('http'),
XML = require('../lib/xml');
var server = http.createServer(function(req, res) {
res.writeHead(200, {"Content-Type": "text/xml"});
var elem = XML.Element({ _attr: { decade: '80s', locale: 'US'} });
var xml = XML({ toys: elem }, {indent:true, stream:true});
res.write('<?xml version="1.0" encoding="utf-8"?>\n');
xml.pipe(res);
process.nextTick(function () {
elem.push({ toy: 'Transformers' });
elem.push({ toy: 'GI Joe' });
elem.push({ toy: [{name:'He-man'}] });
elem.close();
});
});
server.listen(parseInt(process.env.PORT) || 3000);
console.log("server listening on port %d …", server.address().port);