Skip to content

Future version ideas

Gabriel Reitz Giannattasio edited this page Apr 11, 2016 · 2 revisions

Plugins

When version 0.15.0 is released we can move some changes to plugins.

beautifyLocation plugin

This feature can be a plugin and not native, since it only rely on the browser location.hash and when it exists it redirect the browser to remove the hash.

Simple rules plugin

Allow to create rules using familiar simple syntax like Backbone and UI-Router uses, like /:variable that is kind same as /\/(.*)($|\/.*)/

NodeJS plugin

Add's support to NodeJS, by using some DOM node implementation for the Element instances overwriting the default createElement method from PushStateTree.

Allow adapters for DOM

Following the idea to give support on NodeJS, add adapters support, to use native browser implementation, shim, JQuery or any other custom lib that gives the internally required methods to create routers and rule instances and dispatch their events, will let the developer chose the best way to use PST, and make the lib as small as possible in case of the implementation already have a lib to fulfill PST needs.