Javascript Templating

I’ve been using a lot of ajax for a recent application and wanted a really lightweight way to do templating for the responses. Long story short, here is the function that extends the String prototype. <code> String.prototype.templatize = function (o) { return this.replace( /\{([^{}]*)\}/g, function (a, b) { var r = o[b]; return typeof r …

jQuery in Windows 8 apps

Though there are numerous work-arounds floating around the web to get jQuery in Windows 8 apps, I have taken it upon myself to port jQuery for Windows 8. Why? Because I wanted plugin-like access to the WinJS events and hooks I don’t need to be cross-browser friendly so I can just use all of the …