Chapter 6. Packaged Elegance
First there was HTML and JavaScript, then CSS. Next came AJAX to usher in Web 2.0, as it is called. After that, templates drove us to a more dynamic, creative platform. The next advancement in web development was custom HTML components. KnockoutJS allows us to jump right in with some game-changing elegance for designers and developers. In this chapter, we will focus on:
- An introduction to components
- Bring Your Own Tags (BYOT)
- Enhancing attribute handling
- Making your own libraries
- Asynchronous module definition (AMD)—on demand resource loading
- Component-based Single-Page Applications (SPA)
This entire chapter is about packaging your code for reuse. Using these techniques, you can make your code more approachable and elegant.