# Ether Vway [![Downloads](https://img.shields.io/npm/dm/ether-vway.svg)](https://www.npmjs.com/package/ether-vway) [![Version](https://img.shields.io/npm/v/ether-vway.svg)](https://www.npmjs.com/package/ether-vway) [![License](https://img.shields.io/npm/l/ether-vway.svg)](https://www.npmjs.com/package/ether-vway)

vway.js is a solution for **multipage website application** with front back separation(not only SPA) based on Vue.js. It provides all you need for build a website including front-end router, auto layout, ajax, utils and so on.

Different from vue-router build for SPA, vway.js router use vue instance file as route rule. It means you neither need to combine your whole website using webpack, nor always concern about a hundreds-lines routes file.

To check out live examples and docs, visit [FE Doc - vway.js](http://xxr-fe-martin.dev.ethercap.com/doc/?repo=vway&tab=start&doc=index).


# Install

```bash
npm install ether-vway
```


# Usage

```javascript
var vway = require("ether-vway");
Vue.use(vway);
```

Or

```html
<!-- in html -->
<script src="http://xxr-vway.dev.ethercap.com/dist/vway.min.js"></script>
```

```javascript
// in js
Vue.use(vway);
```


# Configuration

```javascript
Vue.use(vway, [config]);
```

Or

```javascript
vway.config(configA);
vway.config(configB);
Vue.use(vway);
```
