Modeled after the Express built-in routing system, Page.js ports some of the principles found in server-side JS programming to the browser.
Page.js allows developers access to a much more advanced routing and history state management system than they could ever achieve by using hash tags in the URL.
By mimicking the Express router, developers can have a better control over situations where the page remains the same while the content changes.
For these situations, Page.js provides a state manager for managing paginated pages, profile pages, 404 errors, external links, query states and many more.
Quite a lot of advanced concepts for such a lightweight library (under 2kb).
What is new in this release:
- Fixed hashbang navigation
- Added hashbang example
- Added tests
What is new in version 1.6.3:
- Fixed hashbang navigation
- Added hashbang example
- Added tests
What is new in version 1.6.2:
- Fixed hashbang navigation
- Added hashbang example
- Added tests
What is new in version 1.6.1:
- Fixed hashbang navigation
- Added hashbang example
- Added tests
What is new in version 1.3.7:
- Fixed removal of fragment.
What is new in version 1.3.6:
- Fixed links with target attribute.
Requirements:
- JavaScript enabled on client side
評論沒有發現