There is one more time someone may want to do something with templates different from the pure native style of using templates with Knockout. This is because you may like to use a slightly different kind of coding style. In this last section of the chapter, we will give you a few more options.
We are back to native templates; I thought we should mention that in case someone had a question. Here are the templates that we will be using on this page:
<script type="text/html" id="guest-template"> <h3>{{name}}</h3> <p>Seating: {{seating}}</p> </script> <script type="text/html" id="guest-template-alt"> <h3>Others</h3> <p>Seating: General Seating</p> </script> <script type="text/html" id="tmpl-Seminar"> <h3>{{name}}</h3> <p>Theme: {{byLine}}</p> </script>
We will be using the data that we used from the beginning of the chapter with this example. Other...