1.0.3 • Published 7 years ago

micro-spa v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Micro client side spa library: http://micro-js.com

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"
            }]
        });