UNPKG

node-amy

Version:

A HTML template framework without client-side JavaScript dependencies

15 lines (11 loc) 278 B
'use strict' class StringWriter { toHtmlString(nodes) { const strings = nodes.reduce((previous, next) => { previous.push(next.toHtml()) return previous }, ['']) return strings.join('') } } module.exports = StringWriter