1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-10-01 02:26:43 +02:00
This commit is contained in:
Pomax
2017-03-26 11:24:40 -07:00
parent d4b8dcd396
commit 6fcf9c9378
11 changed files with 3813 additions and 192 deletions

View File

@@ -0,0 +1,10 @@
var fs = require("fs-extra");
var React = require("react");
var Server = require("react-dom/server");
var FullArticle = require("./article").FullArticle;
var article = React.createElement(FullArticle, {});
var html = Server.renderToString(article);
//var html = Server.renderToStaticMarkup(article);
fs.writeFileSync("fullhtml.html", html);