Skip to content

Commit 5b119fe

Browse files
authored
Using the term "Base" instead of "Simple" (#1520)
* simple -> base * clarify template * undo prettier formatting
1 parent 5c6e98b commit 5b119fe

File tree

6 files changed

+18
-16
lines changed

6 files changed

+18
-16
lines changed

src/v2/cookbook/adding-instance-properties.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: cookbook
44
order: 2
55
---
66

7-
## Simple Example
7+
## Base Example
88

99
There may be data/utilities you'd like to use in many components, but you don't want to [pollute the global scope](https://github.com/getify/You-Dont-Know-JS/blob/master/scope%20%26%20closures/ch3.md). In these cases, you can make them available to each Vue instance by defining them on the prototype:
1010

src/v2/cookbook/creating-custom-scroll-directives.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: cookbook
44
order: 7
55
---
66

7-
## Simple Example
7+
## Base Example
88

99
There are many times that we might want to add a bit of behavior, especially animation, to a scroll event on a site. There are many ways to do so, but the path with the least amount of code and dependencies is perhaps to use a [custom directive](https://vuejs.org/v2/guide/custom-directive.html) to create a hook for anything that fires off a particular scroll event.
1010

src/v2/cookbook/form-validation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: cookbook
44
order: 3
55
---
66

7-
## Simple Example
7+
## Base Example
88

99
Form validation is natively supported by the browser, but sometimes different browsers will handle things in a manner which makes relying on it a bit tricky. Even when validation is supported perfectly, there may be times when custom validations are needed and a more manual, Vue-based solution may be more appropriate. Let's begin with a simple example.
1010

src/v2/cookbook/index.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,32 +35,34 @@ Recipes should generally:
3535
> * Explain the pros and cons of your strategy, including when it is and isn't appropriate
3636
> * Mention alternative solutions, if relevant, but leave in-depth explorations to a separate recipe
3737
38-
### Simple Example
38+
We request that you follow the template below. We understand, however, that there are times when you may necessarily need to deviate for clarity or flow. Either way, all recipes should at some point discuss the nuance of the choice made using this pattern, preferably in the form of the alternative patterns section.
39+
40+
### Base Example
3941

4042
_required_
4143

42-
1. Articulate the problem in a sentence or two.
43-
2. Explain the simplest possible solution in a sentence or two.
44-
3. Show a small code sample.
45-
4. Explain what this accomplishes in a sentence.
44+
1. Articulate the problem in a sentence or two.
45+
2. Explain the simplest possible solution in a sentence or two.
46+
3. Show a small code sample.
47+
4. Explain what this accomplishes in a sentence.
4648

4749
### Details about the Value
4850

4951
_required_
5052

51-
1. Address common questions that one might have while looking at the example. (Blockquotes are great for this)
52-
2. Show examples of common missteps and how they can be avoided.
53-
3. Show very simple code samples of good and bad patterns.
54-
4. Discuss why this may be a compelling pattern. Links for reference are not required but encouraged.
53+
1. Address common questions that one might have while looking at the example. (Blockquotes are great for this)
54+
2. Show examples of common missteps and how they can be avoided.
55+
3. Show very simple code samples of good and bad patterns.
56+
4. Discuss why this may be a compelling pattern. Links for reference are not required but encouraged.
5557

5658
### Real-World Example
5759

5860
_required_
5961

6062
Demonstrate the code that would power a common or interesting use case, either by:
6163

62-
1. Walking through a few terse examples of setup, or
63-
2. Embedding a codepen/jsfiddle example
64+
1. Walking through a few terse examples of setup, or
65+
2. Embedding a codepen/jsfiddle example
6466

6567
If you choose to do the latter, you should still talk through what it is and does.
6668

src/v2/cookbook/unit-testing-vue-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: cookbook
44
order: 6
55
---
66

7-
## Simple Example
7+
## Base Example
88

99
Unit testing is a fundamental part of software development. Unit tests execute the smallest units of code in isolation, in order to increase ease of adding new features and track down bugs. Vue's [single-file components](../guide/single-file-components.html) make it straight forward to write unit tests for components in isolation. This lets you develop new features with confidence you are not breaking existing ones, and helps other developers understand what your component does.
1010

src/v2/cookbook/using-axios-to-consume-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type: cookbook
44
order: 9
55
---
66

7-
## Simple Example
7+
## Base Example
88

99
There are many times when building application for the web that you may want to consume and display data from an API. There are several ways to do so, but a very popular approach is to use [axios](https://github.com/axios/axios), a promise-based HTTP client.
1010

0 commit comments

Comments
 (0)