O'Reilly logo

KnockoutJS Web Development by John Farrar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Awesome template options

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: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required