Skip to content

Commit b3ec209

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 418bd57 + 5a4c571 commit b3ec209

24 files changed

+5802
-5528
lines changed

.gitignore

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.DS_Store
2-
node_modules
2+
Thumbs.db
33
db.json
4-
public
5-
.deploy
6-
debug.log
4+
*.log
5+
node_modules/
6+
public/
7+
.deploy*/

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ This site is built with [hexo](http://zespia.tw/hexo/). Site content is written
44

55
## Developing
66

7-
Start a dev server at `localhost:4000`:
7+
Make sure you are using **hexo 3.0**. Start a dev server at `localhost:4000`:
88

99
```
10-
$ npm install -g hexo
10+
$ npm install -g hexo-cli
1111
$ npm install
1212
$ hexo server
1313
```

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,5 @@ markdown:
9696
# Deployment
9797
## Docs: http://zespia.tw/hexo/docs/deployment.html
9898
deploy:
99-
type: github
99+
type: git
100100
repository: [email protected]:vuejs/vuejs.org.git

package.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
{
2-
"name": "hexo",
3-
"version": "2.8.3",
2+
"name": "vuejs.org",
3+
"version": "0.11.5",
44
"private": true,
5+
"hexo": {
6+
"version": "3.0.0-rc.4"
7+
},
58
"dependencies": {
9+
"hexo": "3.0.0-rc.4",
10+
"hexo-deployer-git": "0.0.3",
11+
"hexo-generator-archive": "^0.1.0",
12+
"hexo-generator-category": "^0.1.0",
13+
"hexo-generator-index": "^0.1.0",
14+
"hexo-generator-tag": "^0.1.0",
615
"hexo-renderer-ejs": "^0.1.0",
7-
"hexo-renderer-marked": "^0.1.0",
8-
"hexo-renderer-stylus": "^0.1.0"
16+
"hexo-renderer-marked": "^0.2.4",
17+
"hexo-renderer-stylus": "^0.2.0",
18+
"hexo-server": "^0.1.2"
919
}
1020
}

source/_posts/011-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Vue.component('my-component', {
2323
```
2424

2525
``` html
26-
<my-component params="{&#123;params&#125;}"></my-component>
26+
<my-component params="{{params}}"></my-component>
2727
```
2828

2929
### Where Does It Belong?

source/api/directives.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ When no argument is provided, the child ViewModel will directly use the assigned
162162
``` html
163163
<ul>
164164
<li v-repeat="users">
165-
{&#123;name&#125;} {&#123;email&#125;}
165+
{{name}} {{email}}
166166
</li>
167167
</ul>
168168
```
@@ -172,7 +172,7 @@ If an argument is provided, a wrapper data object will always be created, using
172172
``` html
173173
<ul>
174174
<li v-repeat="user : users">
175-
{&#123;user.name&#125;} {&#123;user.email&#125;}
175+
{{user.name}} {{user.email}}
176176
</li>
177177
</ul>
178178
```
@@ -201,7 +201,7 @@ Example inheriting an object:
201201
``` html
202202
<my-component v-with="user">
203203
<!-- you can access properties without `user.` -->
204-
{&#123;name&#125;} {&#123;email&#125;}
204+
{{name}} {{email}}
205205
</my-component>
206206
```
207207

@@ -210,7 +210,7 @@ Example inheriting individual properties (using the same data):
210210
```
211211
<my-component v-with="myName: user.name, myEmail: user.email">
212212
<!-- you can access properties with the new keys -->
213-
{&#123;myName&#125;} {&#123;myEmail&#125;}
213+
{{myName}} {{myEmail}}
214214
</my-component>
215215
```
216216

@@ -258,13 +258,13 @@ Using the mustache tag inside `v-partial` makes it reactive:
258258

259259
``` html
260260
<!-- content will change based on vm.partialId -->
261-
<div v-partial="{&#123;partialId&#125;}"></div>
261+
<div v-partial="{{partialId}}"></div>
262262
```
263263

264264
You can also use this syntax (which doesn't support reactivity):
265265

266266
``` html
267-
<div>&#123;&#123;> my-partial&#125;&#125;</div>
267+
<div>{{> my-partial}}</div>
268268
```
269269

270270
### v-transition

source/api/filters.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ Pluralizes the argument based on the filtered value. When there is exactly one a
3232
**Example:**
3333

3434
``` html
35-
{&#123;count&#125;} {&#123;count | pluralize item&#125;}
35+
{{count}} {{count | pluralize item}}
3636
```
3737

3838
*1 => '1 item'*
3939
*2 => '2 items'*
4040

4141
``` html
42-
{&#123;date&#125;}{&#123;date | pluralize st nd rd th&#125;}
42+
{{date}}{{date | pluralize st nd rd th}}
4343
```
4444

4545
Will result in:
@@ -57,7 +57,7 @@ Will result in:
5757
JSON.stringify() incoming value rather than outputting the string representation (i.e. `[object Object]`). It also takes one optional argument which is the indent level (defaults to 2):
5858

5959
``` html
60-
<pre>{&#123;$data | json 4&#125;}</pre>
60+
<pre>{{$data | json 4}}</pre>
6161
```
6262

6363
### key
@@ -96,7 +96,7 @@ Make `v-repeat` only display a filtered version of the source Array. The `search
9696
``` html
9797
<input v-model="searchText">
9898
<ul>
99-
<li v-repeat="users | filterBy searchText">{&#123;name&#125;}</li>
99+
<li v-repeat="users | filterBy searchText">{{name}}</li>
100100
</ul>
101101
```
102102

@@ -107,7 +107,7 @@ Optionally, you can narrow down which specific property to search in with the op
107107
``` html
108108
<input v-model="searchText">
109109
<ul>
110-
<li v-repeat="users | filterBy searchText in name">{&#123;name&#125;}</li>
110+
<li v-repeat="users | filterBy searchText in name">{{name}}</li>
111111
</ul>
112112
```
113113

@@ -117,7 +117,7 @@ Finally, you can use quotes to indicate literal arguments:
117117

118118
``` html
119119
<ul>
120-
<li v-repeat="users | filterBy '555' in 'phone'">{&#123;name&#125;}</li>
120+
<li v-repeat="users | filterBy '555' in 'phone'">{{name}}</li>
121121
</ul>
122122
```
123123

@@ -132,7 +132,7 @@ Sort `v-repeat`'s displayed result. The `sortKey` argument is a property key on
132132

133133
``` html
134134
<ul>
135-
<li v-repeat="users | orderBy field reverse">{&#123;name&#125;}</li>
135+
<li v-repeat="users | orderBy field reverse">{{name}}</li>
136136
</ul>
137137
```
138138

@@ -150,6 +150,6 @@ You can also use quotes for literal sort key. To indicate a literal reverse, use
150150

151151
``` html
152152
<ul>
153-
<li v-repeat="users | orderBy 'name' -1">{&#123;name&#125;}</li>
153+
<li v-repeat="users | orderBy 'name' -1">{{name}}</li>
154154
</ul>
155155
```

source/api/global-api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ order: 5
1616
// interpolation delimiters
1717
// for HTML interpolations, add
1818
// 1 extra outer-most character.
19-
delimiters: ['{&#123;', '&#125;}'],
19+
delimiters: ['{{', '}}'],
2020
// suppress warnings?
2121
silent: false,
2222
// interpolate mustache bindings?
@@ -65,7 +65,7 @@ var Profile = Vue.extend({
6565
el: function () {
6666
return document.createElement('p')
6767
},
68-
template: '&#123;&#123;firstName&#125;&#125; &#123;&#123;lastName&#125;&#125; aka &#123;&#123;alias&#125;&#125;'
68+
template: '{{firstName}} {{lastName}} aka {{alias}}'
6969
})
7070
var profile = new Profile({
7171
data: {
@@ -124,14 +124,14 @@ HTML
124124

125125
``` html
126126
<div id="demo">
127-
&#123;&#123;> avatar&#125;&#125;
127+
{{> avatar}}
128128
</div>
129129
```
130130

131131
JavaScript
132132

133133
``` js
134-
Vue.partial('avatar', '&lt;img v-attr="src:avatarURL"&gt;')
134+
Vue.partial('avatar', '<img v-attr="src:avatarURL">')
135135

136136
new Vue({
137137
el: '#demo',

source/api/instance-methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Evaluate a piece of template string containing mustache interpolations. Note tha
9090

9191
``` js
9292
// assuming vm.msg = 'hello'
93-
vm.$interpolate('{&#123;msg&#125;} world!') // -> 'hello world!'
93+
vm.$interpolate('{{msg}} world!') // -> 'hello world!'
9494
```
9595

9696
### vm.$log( [keypath] )

source/api/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Vue.component('param-demo', {
128128
Param attributes can also contain interpolation tags. The interpolation will be evaluated against the parent, and under the hood they will be compiled as [`v-with`](/api/directives.html#v-with), which means when the value of the interpolated expression changes, the component's corresponding property will also be updated:
129129

130130
``` html
131-
<param-demo message="{&#123;parentMessage&#125;}"></param-demo>
131+
<param-demo message="{{parentMessage}}"></param-demo>
132132
```
133133

134134
#### Notes on hyphened attributes

0 commit comments

Comments
 (0)