Page.js 1.2.0

Along with better API docs the page.js 1.2.0 is released, the client-side micro router.

page.js router logo

The additions are subtle, the first is a ctx.querystring property exposing the query string, followed by the complimenting ctx.pathname to reference the ctx.path void of query string. @ovaillancourt also added support for passing query strings in the first place, which was arguably a bug, and added .defaultPrevented support to opt-out of page’s handling (as well as browser defaults of course).

Notes

  1. haru012 reblogged this from tjholowaychuk
  2. tjholowaychuk posted this