or "Why don't you use DOM in Node?"
NodeFest. 2017
@laco2net
GitHub: angular/angular-ja
BrowserRenderer = fn(App) => DOM
ServerRenderer = fn(App) => DOM
const domino = require('domino');
// 1. Create Document object
const window = domino.createWindow(
'<h1>Hello world</h1>',
'http://example.com
');
const document = window.document;
// 2. Manipulating DOM
// 3. Serialize the document to HTML string
const html = document.serialize();