https://github.com/refkinscallv/html-routing
Routing for HTML and JavaScript
https://github.com/refkinscallv/html-routing
html javascript routing
Last synced: 10 months ago
JSON representation
Routing for HTML and JavaScript
- Host: GitHub
- URL: https://github.com/refkinscallv/html-routing
- Owner: refkinscallv
- License: mit
- Created: 2024-03-15T01:13:01.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T22:54:59.000Z (almost 2 years ago)
- Last Synced: 2025-04-10T00:57:23.663Z (10 months ago)
- Topics: html, javascript, routing
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HTML Routing
## Overview
HTML Routing is a lightweight HTML JavaScript routing library designed to simplify the creation of web applications with clean and user-friendly URLs.
## Features
- **Clean URL**: Utilizes clean and user-friendly URLs for better readability and SEO.
- **Dynamic Routing**: Facilitates navigation between different pages without reloading the entire webpage.
- **Simple Integration**: Easy-to-implement script for handling routing logic directly within HTML files.
- **No Backend Required**: Purely frontend implementation; no server-side code or backend required.
## How To Use
- **Download Source**: Begin by downloading the source code of HTML Routing **[Here](https://github.com/refkinscallv/html-routing/archive/refs/heads/master.zip)**.
- **Fill in route.json Data**: Populate the route.json file located in the `data/route.json` folder with the necessary routing data.
### route.json Format
```json
[
{
"path": "/",
"file": "name_file.html"
},
{
"path": "/other-path",
"file": "folder/name_file.html"
},
]
````
Ensure that the route.json file follows the specified format to define the routing paths and corresponding HTML files.