Skip to content

Commit 9eb2719

Browse files
committed
update language on code blocks
1 parent 88854a5 commit 9eb2719

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

guides/release/routing/linking-between-routes.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Router.map(function() {
1616
});
1717
```
1818

19-
```handlebars {data-filename=app/templates/photos.gjs}
19+
```gjs {data-filename=app/templates/photos.gjs}
2020
import { LinkTo } from '@ember/routing';
2121
<template>
2222
<ul>
@@ -59,7 +59,7 @@ behavior can be customized within `PhotoEditRoute`'s `serialize` hook.
5959
Alternatively, you can explicitly provide a serialized `id`, in place of
6060
passing a model object:
6161

62-
```handlebars {data-filename=app/templates/photos.gjs}
62+
```gjs {data-filename=app/templates/photos.gjs}
6363
<LinkTo @route="photos.edit" @model="1">First Photo Ever</LinkTo>
6464
```
6565

@@ -96,7 +96,7 @@ will be given the `active` CSS class. For example, if you were at the URL
9696

9797
The CSS class name used for active classes can be customized for a single use of `<LinkTo />` by passing an `@activeClass` argument:
9898

99-
```handlebars {data-filename=app/templates/photos.gjs}
99+
```gjs {data-filename=app/templates/photos.gjs}
100100
import { LinkTo } from '@ember/routing';
101101
<template>
102102
<ul>
@@ -152,7 +152,7 @@ URL.
152152

153153
For example, if we are currently on `/photos/2`, then the following template:
154154

155-
```handlebars {data-filename=app/templates/photos/photo.gjs}
155+
```gjs {data-filename=app/templates/photos/photo.gjs}
156156
import { LinkTo } from '@ember/routing';
157157
<template>
158158
{{#each this.photo.comments as |comment|}}
@@ -191,11 +191,11 @@ To solve this problem, or maybe to cross-link comments from photos other than
191191
the currently active one, you can pass an array of model objects using the
192192
`@models` argument and the `{{array}}` helper:
193193

194-
```handlebars {data-filename=app/templates/photos.gjs}
194+
```gjs {data-filename=app/templates/photos.gjs}
195195
import { LinkTo } from '@ember/routing';
196196
<template>
197197
<h1>Latest Comments</h1>
198-
198+
199199
<ul>
200200
{{#each this.latestComments as |comment|}}
201201
<li>
@@ -219,7 +219,7 @@ argument. Therefore, it is an error to pass _both_ arguments at the same time.
219219
The `@query` argument, along with the `{{hash}}` helper, can be used to set
220220
query params on a link:
221221

222-
```handlebars
222+
```gjs
223223
// Explicitly set target query params
224224
<LinkTo @route="posts" @query={{hash direction="asc"}}>Sort</LinkTo>
225225
@@ -236,9 +236,9 @@ example, it is quite common to want to add additional CSS classes to the
236236
generated link tag, or specifying the appropriate ARIA attributes. You can
237237
simply pass them along with the invocation:
238238

239-
```handlebars {data-filename=app/templates/photos/edit.gjs}
239+
```gjs {data-filename=app/templates/photos/edit.gjs}
240240
import { LinkTo } from '@ember/routing';
241-
<template>
241+
<template>
242242
<LinkTo @route="photos" class="btn btn-primary" role="button" aria-pressed="false">
243243
Discard Changes
244244
</LinkTo>
@@ -255,7 +255,7 @@ browser's history when transitioning between routes. However, to replace the
255255
current entry in the browser's history instead, you can use the `@replace`
256256
option:
257257

258-
```handlebars
258+
```gjs
259259
<LinkTo @route="photo.comment" @model={{this.topComment}} @replace={{true}}>
260260
Top comment for the current photo
261261
</Link>

0 commit comments

Comments
 (0)