Skip to content

x0ptr/arouter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Firefox Status Chrome Status Edge Status

arouter

JavaScript, ES5+, Anchor Router

for the people who wants just a little HTML site and a little routing..

its not even worth to write a function, but here you go..

HowTo

html

<a href="#impressum">Impressum</a>
<a href="#duckduckgo">Duckduckgo</a>
<div id="content"></div>

javascript

arouter("content", {
        "#impressum": "pages/impressum.html",
        "#duckduckgo": "https://duckduckgo.com/"
    }, true);

Parameter:

  1. ID of element to fill
  2. anchor url mapping
  3. caching

About

A realy simple... anchor router for ES6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors