<template id="my-template"> <table border="1"> <tbody> <tr template repeat="{{rows}}"> <td>{{label}}</td> </tr> </tbody> </table> </template>
require.config({baseUrl: "http://ibm-js.github.io/libraries/master/"}); require(["liaison-build/layer"], function () { require([ "liaison/wrapper", "liaison/DOMTreeBindingTarget" ], function (wrapper) { var model = wrapper.wrap({ rows: [ {label: "1st row"}, {label: "2nd row"}, {label: "3rd row"} ] }); document.getElementById("my-template").bind("bind", model); }); });