Ian,
Thanks for taking the time to update your example. That does help. Spent a good time in your code today. Truly a great learning experience to me. It may not need to be stated, but I'm a noob to javascript and knockout. This has open my eyes to a new way of thinking about knockout and the templating.
I have been wanting to address the re-useable controls, simple-grid binding. Also, made me start looking at the renderTemplate and addTemplate functions. I'm starting a new module in my current project.and this was the perfect time to try and implement the Revealing Module Pattern w/private and public properties/methods. I have come to learn with my project, that sticking everything in the global namespace and having all my templates in one page has become a mess. Coming from Silverlight and having the concept of 'controls', I have been trying to think of a way to reproduce this functionality of putting in a control and supply a dataSource. And have most of the functionality encapsulated in one spot. This has also made me start thinking that a VisualStateManager may be possible to implement on some level.
Also, the way you use templates to generate the window is also very cool. I have only used templates to render a small bits of data contained in a static html styled div.
I personally think the window manager is great. I have been wanting to add a modal box functionality. But have been putting off trying to get this functionality via jQuery's UI dialog box.
Have not got to the point yet, but I'm assuming that once you add the template with addTemplate and renderTemplate, that ko then updates the templates if you have observables being using in the template as if the template was added through the script tags?
Maybe it is just that my current stage of understanding knockout allows me the understand these concepts better (at least I think I understand them better), but today has been a great learning experience for me. It has been a challenge coming from C# and trying to force programming habits into javascript.
Thanks, keep up the great work.
--
Mike Apken