A JavaScript router in 20 lines
Last week I found this post about writing a template engine in 20 lines, which in turn is inspired by John Resig's post on the same topic. I find them really simple, interesting and inspiring so I came up with the idea of making a simple client side router in just 20 lin...