Skip to content

refkinscallv/html-routing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • 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

[
    {
        "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.

About

Routing for HTML and JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages