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: git@github.com: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

source/guide/application.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ You can implement some rudimentary routing logic by manually listening on hashch
3434

3535
``` html
3636
<div id="app">
37-
<div v-component="{&#123;currentView&#125;}"></div>
37+
<div v-component="{{currentView}}"></div>
3838
</div>
3939
```
4040

source/guide/components.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ When given a single keypath without an argument, the corresponding value on the
8383
``` js
8484
// registering the component first
8585
Vue.component('user-profile', {
86-
template: '{&#123;name&#125;}<br>{&#123;email&#125;}'
86+
template: '{{name}}<br>{{email}}'
8787
})
8888
// the `user` object will be passed to the child
8989
// component as its $data
@@ -139,7 +139,7 @@ new Vue({
139139
},
140140
components: {
141141
child: {
142-
template: '<span>{&#123;childMsg&#125;}</span>'
142+
template: '<span>{{childMsg}}</span>'
143143
}
144144
}
145145
})
@@ -184,7 +184,7 @@ new Vue({
184184
paramAttributes: ['child-msg'],
185185
// dashed attributes are camelized,
186186
// so 'child-msg' becomes 'this.childMsg'
187-
template: '<span>{&#123;childMsg&#125;}</span>'
187+
template: '<span>{{childMsg}}</span>'
188188
}
189189
}
190190
})
@@ -268,15 +268,15 @@ new Vue({
268268
```
269269

270270
``` html
271-
<div v-component="{&#123;currentView&#125;}">
271+
<div v-component="{{currentView}}">
272272
<!-- content changes when vm.currentview changes! -->
273273
</div>
274274
```
275275

276276
If you want to keep the switched-out components alive so that you can preserve its state or avoid re-rendering, you can add a `keep-alive` directive param:
277277

278278
``` html
279-
<div v-component="{&#123;currentView&#125;}" keep-alive>
279+
<div v-component="{{currentView}}" keep-alive>
280280
<!-- inactive components will be cached! -->
281281
</div>
282282
```

source/guide/custom-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Vue.filter('concat', function (value, key) {
6464
```
6565
``` html
6666
<input v-model="userInput">
67-
<span>{&#123;msg | concat userInput&#125;}</span>
67+
<span>{{msg | concat userInput}}</span>
6868
```
6969

7070
For this simple example above, you can achieve the same result with just an expression, but for more complicated procedures that need more than one statements, you need to put them either in a computed property or a custom filter.

source/guide/directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Here `"my-component"` is not a data property - it's a string ID that Vue.js uses
7171
You can also use mustache expressions inside literal directives. For example, the following code allows you to dynamically resolve the type of component you want to use:
7272

7373
``` html
74-
<div v-component="{&#123; isOwner ? 'owner-panel' : 'guest-panel' &#125;}"></div>
74+
<div v-component="{{ isOwner ? 'owner-panel' : 'guest-panel' }}"></div>
7575
```
7676

7777
When the expression inside the mustaches change, the rendered component will also change accordingly!

source/guide/filters.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@ Filters must be placed at the end of a directive's value:
2222
You can also use them inside mustache-style bindings:
2323

2424
``` html
25-
<span>&#123;&#123;message | uppercase&#125;&#125;</span>
25+
<span>{{message | uppercase}}</span>
2626
```
2727

2828
Multiple filters can be chained together:
2929

3030
``` html
31-
<span>&#123;&#123;message | lowercase | reverse&#125;&#125;</span>
31+
<span>{{message | lowercase | reverse}}</span>
3232
```
3333

3434
## Arguments
3535

3636
Some filters can take optional arguments. Simply add arguments separated by spaces:
3737

3838
``` html
39-
<span>&#123;&#123;order | pluralize st nd rd th&#125;&#125;</span>
39+
<span>{{order | pluralize st nd rd th}}</span>
4040
```
4141

4242
``` html

source/guide/forms.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@ You can use the `v-model` directive to create two-way data bindings on form inpu
1414
<!-- text -->
1515
<p>
1616
<input type="text" v-model="msg">
17-
{&#123;msg&#125;}
17+
{{msg}}
1818
</p>
1919
<!-- checkbox -->
2020
<p>
2121
<input type="checkbox" v-model="checked">
22-
{&#123;checked ? &quot;yes&quot; : &quot;no&quot;&#125;}
22+
{{checked ? "yes" : "no"}}
2323
</p>
2424
<!-- radio buttons -->
2525
<p>
2626
<input type="radio" name="picked" value="one" v-model="picked">
2727
<input type="radio" name="picked" value="two" v-model="picked">
28-
{&#123;picked&#125;}
28+
{{picked}}
2929
</p>
3030
<!-- select -->
3131
<p>
3232
<select v-model="selected">
3333
<option>one</option>
3434
<option>two</option>
3535
</select>
36-
{&#123;selected&#125;}
36+
{{selected}}
3737
</p>
3838
<!-- multiple select -->
3939
<p>
@@ -42,9 +42,9 @@ You can use the `v-model` directive to create two-way data bindings on form inpu
4242
<option>two</option>
4343
<option>three</option>
4444
</select>
45-
{&#123;multiSelect&#125;}
45+
{{multiSelect}}
4646
</p>
47-
<p><pre>data: {&#123;$data | json 2&#125;}</pre></p>
47+
<p><pre>data: {{$data | json 2}}</pre></p>
4848
</form>
4949
```
5050

0 commit comments

Comments
 (0)