Open GoogleCodeExporter opened 9 years ago
it work for me , just create a function & action into id(element)
<html>
<head>
<script type="text/javascript" src="ejs_production.js"></script>
<script type="text/javascript">
var data = {supplies : ['mop', 'broom', 'duster']};
var result = new EJS({url: 'cleaning.ejs'}).render(data);
function show(){
document.getElementById('supply_list').innerHTML = result
}
</script>
</head>
<body id="supply_list">
<p onclick="show()">Click Here</p>
</body>
</html>
Original comment by hendar.o...@gmail.com
on 25 May 2012 at 9:05
Original issue reported on code.google.com by
christia...@ac-rennes.fr
on 3 Dec 2010 at 10:34