Manual binding
To make it simple, imagine that we have a form with a simple layout: name, phone, and an email address:
<script id="form-template" type="text/template"> <form> <div class="form-group"> <label for="name">Name</label> <input id="name" class="form-control" type="text" value="<%= name %>" /> </div> <div class="form-group"> <label for="phone">Name</label> <input id="phone" class="form-control" type="text" value="<%= phone %>" /> </div> <div class="form-group"> <label for="email">Name</label> <input id="email" class="form-control" type="text" value="<%= email %>" /> </div> <button type="submit"class="btn btn-default">Save now</button> </form> </script> <script id="preview-template" type="text/template"> <h3><%= name %></h3> <ul> <li><%= phone %></li> <li><%= email %></li>...