Skip to content

Commit

Permalink
add server-side hyperscript support (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
ungoldman committed Apr 17, 2018
1 parent 371e897 commit 3c0bac4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/server.js
Expand Up @@ -57,6 +57,7 @@ function handleValue (value) {
if (value.__encoded) return value

if (typeof value === 'object') {
if (typeof value.outerHTML === 'string') return value.outerHTML
return Object.keys(value).reduce(function (str, key, i) {
if (str.length > 0) str += ' '

Expand Down

0 comments on commit 3c0bac4

Please sign in to comment.