micro-spa
v1.0.3
Published
Client side micro router and tpl loader/parser
Downloads
10
Readme
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"
}]
});