https://github.com/marshallovski/funkyjs
Funky.js is a lightweight router for websites
https://github.com/marshallovski/funkyjs
Last synced: about 1 month ago
JSON representation
Funky.js is a lightweight router for websites
- Host: GitHub
- URL: https://github.com/marshallovski/funkyjs
- Owner: marshallovski
- License: mit
- Created: 2022-08-19T10:20:22.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-09-04T18:09:40.000Z (about 3 years ago)
- Last Synced: 2025-06-04T12:46:46.445Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Funky.js
Funky.js is a lightweight router for websites.# How to use
Simply add `` to your code. Works out of the box, works in client-side.# Examples
See **demo** folder in this repo.Init Funky.js:
```js
Funky.init({
dev: true, // development mode be enabled
rootElement: document.getElementById('demoapp'),
page: 'homepage'
});
```Auto-router: (`data-page` attribute is **IMPORTANT**!!!)
```html
See the cute cats!
```