Skip to content
This repository has been archived by the owner on Feb 8, 2019. It is now read-only.

Commit

Permalink
⭐ new(gitbook): add getting started template
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Mar 22, 2017
1 parent 59feb84 commit 2d14c84
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions template/gitbook/en/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
{{/unless_eq}}

- [Installation](installation.md)
- [Getting Started](started.md)
38 changes: 38 additions & 0 deletions template/gitbook/en/started.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# Getting Started

> We will be using [ES2015](https://github.com/lukehoban/es6features) in the code samples in the guide.

### HTML

```html
<script src="https://unpkg.com/vue/dist/vue.js"></script>
<script src="https://unpkg.com/{{ name }}/dist/{{ name }}.js"></script>

<div id="#app">
<!-- TODO: here the outputs -->
</div>
```

### JavaScript

```javascript
// If using a module system (e.g. via vue-cli), import Vue and {{ classify name }} and then call Vue.use({{ classify name }}).
// import Vue from 'vue'
// import {{ classify name }} from '{{ name }}'
//
// Vue.use({{ classify name }})

// TODO: here the example

// Now the app has started!
new Vue({ }).$mount('#app')
```

Output the following:

```html
<div id="#app">
<!-- TODO: here the outputs -->
</div>
```

0 comments on commit 2d14c84

Please sign in to comment.