An open API service indexing awesome lists of open source software.

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

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!
```