Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 787 Bytes

File metadata and controls

27 lines (22 loc) · 787 Bytes
title make-string
scope module
kind reference
category reference
aliases
respo.core/make-string
entry_for
stringify html
ssr markup

make-string

Generate HTML from a virtual DOM. Stringified HTML contains a lot of markups, such as :data-coord:

make-string (div $ {})
; "<div data-coord=\"[]\" data-event=\"#{}\"></div>"

It's quite limited, so the only use case is server side rendering. It doesn't have to be a real web server, scripts on Node.js is also fine.

And it's also called "universal rendering", or I would call it "progressive rendering". The rendering process started in Gulp, then in server, and last last in a browser. So it's progressive. Respo needs to make sure the HTML is identical rendered anywhere.