I trying to learn js templates and wrote following page:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/0.9.0/lodash.js"></script>
</head>
<body>
<div id="helloDiv">init text</div>
<script type="text/template" id="test">
<% hello world %>!
</script>
<script>
$('#helloDiv').html(
_.template( $('#test').html().trim(),world : 'EARTH')
);
</script>
</body>
</html>
Expected behaviour: I want to see hello EARTH!
But I see init text
What do I wrong?