micro-spa

1.0.3 • Public • Published

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

    

Package Sidebar

Install

npm i micro-spa

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • gorans