examples/complex.js
function (value, elem) {
        var tmpl = elem.firstElementChild
        elem.removeChild(tmpl)

        value.forEach(function (text) {
            var clone = tmpl.cloneNode(true)
            clone.textContent = text
            elem.appendChild(clone)
        })
    }
function (value, elem) {
        var tmpl = elem.firstElementChild
        elem.removeChild(tmpl)

        value.forEach(function (text) {
            var clone = tmpl.cloneNode(true)
            clone.textContent = text
            elem.appendChild(clone)
        })
    }
function ( value , elem ) { var tmpl = elem . firstElementChild elem . removeChild ( tmpl ) value . forEach ( function ( text ) { var clone = tmpl . cloneNode ( true ) clone . textContent = text elem . appendChild ( clone ) } ) }
Custom logic. Mappings are just functions, do anything you want!
Custom logic . Mappings are just functions do anything you want!