Skip to content

Commit 724c7dc

Browse files
bradfrostbmuenzenmeyer
authored andcommitted
Update raw tags
1 parent 2d77ed8 commit 724c7dc

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/docs/src/docs/pattern-parameters.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,25 +32,21 @@ Again, pattern parameters are a simple find and replace of Mustache variables wi
3232
Let's look at a simple example for how we might use pattern parameters. First we'll set-up a pattern that might be included multiple times. We'll make it a simple "message" pattern with a single Mustache variable of `message`.
3333

3434
```html
35-
{% raw %}
36-
<div class="message">{{ message }}</div>
37-
{% endraw %}
35+
<div class="message">{% raw %}{{ message }}{% endraw %}</div>
3836
```
3937

4038
We'll organize it under Atoms > Global and call it "message" so it'll have the pattern partial of `atoms-message`.
4139

4240
Now let's create a pattern that includes our message pattern partial multiple times. It might look like this.
4341

4442
```html
45-
{% raw %}
4643
<div class="main-container">
47-
{{> atoms-message }}
44+
{% raw %}{{> atoms-message }}{% endraw %}
4845
<div>
4946
A bunch of extra information
5047
</div>
51-
{{> atoms-message }}
48+
{% raw %}{{> atoms-message }}{% endraw %}
5249
</div>
53-
{% endraw %}
5450
```
5551

5652
Using `data.json` or a pattern-specific JSON file we wouldn't be able to supply separate messages to each pattern partial. For example, if we defined `message` in our `data.json` as "this is an alert" then "this is an alert" would show up twice when our parent pattern was rendered.

0 commit comments

Comments
 (0)