{"id":1942,"date":"2014-04-30T20:11:01","date_gmt":"2014-04-30T20:11:01","guid":{"rendered":"http:\/\/justthesam.com\/?p=1942"},"modified":"2014-04-30T20:11:01","modified_gmt":"2014-04-30T20:11:01","slug":"a-hash-based-knockout-page-router","status":"publish","type":"post","link":"https:\/\/justthesam.com\/?p=1942","title":{"rendered":"A hash-based Knockout page router"},"content":{"rendered":"<p><a href=\"https:\/\/www.lshift.net\/blog\/2014\/04\/30\/a-simple-knockout-page-router\">I have blogged on my employer&#8217;s blog<\/a> about the simple, but relatively featureful, Knockout.js page router that I whipped up recently. The core router.js file is only 61 lines but is\u00a0packaged up into a nice demo app, <a href=\"https:\/\/github.com\/lshift\/knockout-routing\">src on GitHub<\/a>, that you can just clone, then double click index.html to see it working (no server required).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have blogged on my employer&#8217;s blog about the simple, but relatively featureful, Knockout.js page router that I whipped up recently. The core router.js file is only 61 lines but is\u00a0packaged up into a nice demo app, src on GitHub, that you can just clone, then double click index.html to see it working (no server [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,28,33],"tags":[],"class_list":["post-1942","post","type-post","status-publish","format-standard","hentry","category-programming","category-tech","category-webtech"],"_links":{"self":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1942"}],"version-history":[{"count":0,"href":"https:\/\/justthesam.com\/index.php?rest_route=\/wp\/v2\/posts\/1942\/revisions"}],"wp:attachment":[{"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/justthesam.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}