import { tpl } from './tpl' ; import { fn } from './fn' ; param template param data export function render ( template , data ) { const keys = Object . keys ( data ) ; const values = keys . map ( ( k ) => data [ k ] ) ; const t = tpl ( template ) ; const f = fn ( t , keys ) ; return f ( ... values ) ; }