Skip to content

sgoran/micro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micro client side Single Page Library: http://micro-js.com Goal is to use it fast to improve UX and fragment your application without need to learn Angular, React etc.

Installing

$ npm install micro-spa

or by embedding directly on page

<script src="https://unpkg.com/micro-spa@latest"></script>

Running examples

To run examples do the following to install dev dependencies and run the example express server:

$ git clone https://github.com/sgoran/micro.git
$ cd micro/examples/blog
$ npm install
$ cd micro/examples/blog
$ npm start
$ open http://localhost:8080

Simple API

  new Micro({
            config: {
                container: '#app',
                tplDir: '/tpl',
                enterAnimation: 'fadeIn'
            },
            router: [{
                match: '/',
                title: 'Home Page',
                src: "home.html"
            },{
                match: '/example',
                title: 'Example Page',
                src: "examples.html"
            }]
        });

    

About

Small client side router and tpl library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published