totaljs / Tangular

A simple JavaScript template engine like Angular.js for websites or node.js
MIT License
61 stars 21 forks source link

Display Tangular output in the html page #1

Closed hasan3ysf closed 9 years ago

hasan3ysf commented 9 years ago

Hi Peter,

I added this line to your fiddle, hoping to see the output, but nothing seen, how to make it:

document.querySelector('#output').html(template2(model));

in the HTML part I added: < d i v id='output'>< / d i v>

thanks

petersirka commented 9 years ago

Hi @hyousef, try to add:

document.querySelector('body').innerHTML = template2(model);

Thanks :+1:

hasan3ysf commented 9 years ago

did not work :(

petersirka commented 9 years ago

Screenshot

hasan3ysf commented 9 years ago

sorry, It worked, It lookd the "d" in document was not copied .

thanks