From c63f70efa3aa99467e2fc42921bf6cac2a680bfc Mon Sep 17 00:00:00 2001 From: stop2stare Date: Fri, 9 Feb 2018 12:26:50 +0800 Subject: [PATCH] add some html interpolations --- examples/listview/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/examples/listview/index.html b/examples/listview/index.html index 33620cb..648e4eb 100644 --- a/examples/listview/index.html +++ b/examples/listview/index.html @@ -13,11 +13,13 @@ var tpl = 'Now I repeat: ' + '' - var html = Leopard(tpl) - + var data = { + name: 'Leopard' + } + var html = Leopard(tpl, data) document.getElementById('app').innerHTML = html