Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MASTERING KNOCKOUTJS

You're reading from   MASTERING KNOCKOUTJS Use and extend Knockout to deliver feature-rich, modern web applications

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783981007
Length 270 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Timothy Moran Timothy Moran
Author Profile Icon Timothy Moran
Timothy Moran
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Knockout Essentials 2. Extending Knockout with Custom Binding Handlers FREE CHAPTER 3. Extending Knockout with Preprocessors and Providers 4. Application Development with Components and Modules 5. Durandal – the Knockout Framework 6. Advanced Durandal 7. Best Practices 8. Plugins and Other Knockout Libraries 9. Under the Hood Index

Knockout punches

Now that you are familiar with the techniques that are used to modify the binding syntax and the general use of preprocessors, we are going to look at the popular Knockout plugin Knockout.Punches (get it?). Punches is written by Michael Best, who is a Knockout developer and the creator of the Knockout preprocessor functionality and some of the best real-world use cases for preprocessors. We are going to look at some of them and dig in to see how they work. This section is not going to cover everything in Knockout Punches; if you want to learn more about it, you can check out the documentation online.

Note

The documentation for Knockout.Punches can be found at http://mbest.github.io/knockout.punches, which includes an API reference and the source code.

Embedded text bindings

Embedded text bindings offer the same syntax that we created with the preprocessor in the Supporting alternate syntaxes section—converting curly braces into virtual text nodes:

<div>Hello {{...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at R$50/month. Cancel anytime