<±/> diffHTML Render to String
Stable Version: 1.0.0-beta.18
Allows you to render diffHTML markup to string. This is useful for server-side rendering, compiling to static HTML, and testing.
All middleware should work if it can run under Node.js. For instance you can use Components by importing from diffhtml-components or get logging by importing diffhtml-middleware-logger.
Installation
npm install diffhtml-render-to-string
Example
;;const markup =;// Use with something like express to send to the client.//res.send(markup);
Example components
;;;{return html``;}const markup =;// Use with something like express to send to the client.res;