All Projects → akhilarjun → RouteNow

akhilarjun / RouteNow

Licence: other
RouteNow is a small fast library ⚡ that will help you in developing a SinglePage Application without any dependencies like jQuery, AngularJs, vue.js or any of those bulky frameworks.

Programming Languages

HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to RouteNow

Flow builder
Flutter Flows made easy! A Flutter package which simplifies flows with a flexible, declarative API.
Stars: ✭ 169 (+894.12%)
Mutual labels:  router, routing
neteng-roadmap
Network Engineering at Scale Roadmap/Landscape
Stars: ✭ 53 (+211.76%)
Mutual labels:  router, routing
Routerify
A lightweight, idiomatic, composable and modular router implementation with middleware support for the Rust HTTP library hyper.rs
Stars: ✭ 173 (+917.65%)
Mutual labels:  router, routing
Router
⚡️ A lightning fast HTTP router
Stars: ✭ 158 (+829.41%)
Mutual labels:  router, routing
Swiftuirouter
Routing in SwiftUI
Stars: ✭ 242 (+1323.53%)
Mutual labels:  router, routing
Rayo.js
Micro framework for Node.js
Stars: ✭ 170 (+900%)
Mutual labels:  router, routing
Ui Router
The de-facto solution to flexible routing with nested views in AngularJS
Stars: ✭ 13,738 (+80711.76%)
Mutual labels:  router, routing
Router5
Flexible and powerful universal routing solution
Stars: ✭ 1,704 (+9923.53%)
Mutual labels:  router, routing
Router
Router implementation for fasthttp
Stars: ✭ 234 (+1276.47%)
Mutual labels:  router, routing
Klein.php
A fast & flexible router
Stars: ✭ 2,622 (+15323.53%)
Mutual labels:  router, routing
Redux Tower
Saga powered routing engine for Redux app.
Stars: ✭ 155 (+811.76%)
Mutual labels:  router, routing
es6-router
🌐 Simple client side router built in ES6
Stars: ✭ 16 (-5.88%)
Mutual labels:  router, routing
Nextjs Dynamic Routes
[Deprecated] Super simple way to create dynamic routes with Next.js
Stars: ✭ 145 (+752.94%)
Mutual labels:  router, routing
journey
A conductor routing helper library
Stars: ✭ 35 (+105.88%)
Mutual labels:  router, routing
Grip
The microframework for writing powerful web applications.
Stars: ✭ 137 (+705.88%)
Mutual labels:  router, routing
Next Routes
Universal dynamic routes for Next.js
Stars: ✭ 2,354 (+13747.06%)
Mutual labels:  router, routing
Django Macros Url
Django Macros URL. Routing must be simple as possible
Stars: ✭ 121 (+611.76%)
Mutual labels:  router, routing
Bsdrp
BSD Router Project
Stars: ✭ 126 (+641.18%)
Mutual labels:  router, routing
Falco
A functional-first toolkit for building brilliant ASP.NET Core applications using F#.
Stars: ✭ 214 (+1158.82%)
Mutual labels:  router, routing
Clevergo
👅 CleverGo is a lightweight, feature rich and high performance HTTP router for Go.
Stars: ✭ 246 (+1347.06%)
Mutual labels:  router, routing

RouteNow

Contributions-Welcome experimental File-Size Version

A new revolutionary small router with no bullshit!

RouteNow is a small library that will help you in developing a SinglePage Application without any dependencies like jQuery, AngularJs, vue.js or any of those bulky frameworks.

Installation

Installating RouteNow.js is as easy as it gets.

Add the script to the end of your body

<script src="../pathto/route-now.js"></script>

Or use the CDN link

<!-- For latest build use @latest -->
<script src="https://cdn.jsdelivr.net/gh/akhilarjun/RouteNow@latest/js/route-now.js"></script>
<!-- For specific version use the version tag -->
<script src="https://cdn.jsdelivr.net/gh/akhilarjun/[email protected]/js/route-now.js"></script>
<!-- For Minified -->
<script src="https://cdn.jsdelivr.net/gh/akhilarjun/[email protected]/js/route-now.min.js"></script>

Use anchor tags with r-href property to point to your paths

<a r-href="home">Home</a>

Now add the Router outlet where the views should be populated

<div router-outlet></div>

Finally, map the paths to your templates and you are done.

$Router.config([
    {path:'home',templateUrl:'partial/home.html'},
    {path:'options',templateUrl:'partial/options.html'},
    {path:'about',templateUrl:'partial/about.html'},
    {path:'thankyou',templateUrl:'partial/thankyou.html'},
    {otherwise:'home'}
]);

Check the API options for more customization options

$Router can be directly used as a browser global.

Local Setup

A sample server.js is added with the repo, which spins up a Express server at port 8080

Install and start the server by

npm install
npm start

Changelog

  • v2.0.1 Introducing HTML5 History API's pushState and popState as the default strategy for routing.
  • v1.2.2 Added $Router.hash() method
  • v1.2.1 Bug fix to prevent modules.export from breaking the library in script tags
  • v1.2 Added common modules export support
  • v1.1 First release
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].