@@ -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}
2020import { LinkTo } from '@ember/routing';
2121<template>
2222 <ul>
@@ -59,7 +59,7 @@ behavior can be customized within `PhotoEditRoute`'s `serialize` hook.
5959Alternatively, you can explicitly provide a serialized ` id ` , in place of
6060passing 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
9797The 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}
100100import { LinkTo } from '@ember/routing';
101101<template>
102102 <ul>
152152
153153For 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}
156156import { 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
191191the 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}
195195import { 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.
219219The ` @query ` argument, along with the ` {{hash}} ` helper, can be used to set
220220query 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
236236generated link tag, or specifying the appropriate ARIA attributes. You can
237237simply 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}
240240import { 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
255255current entry in the browser's history instead, you can use the ` @replace `
256256option:
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