Skip to content
This repository has been archived by the owner on May 26, 2019. It is now read-only.

Commit

Permalink
use calendar, not calendarview
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepmunroe committed Mar 20, 2015
1 parent f9abc49 commit 0785d6a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/templates/writing-helpers.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,16 @@ You may also find yourself rendering your view classes in multiple
places using the `{{view}}` helper. In this case, you can save yourself
some typing by registering a custom view helper.

For example, let’s say you have a view called `CalendarView`.
For example, let’s say you have a view called `Calendar`.
You can register a helper like this:

```javascript
import CalendarView from 'my-app/views/calendar-view';
import Calendar from 'my-app/views/calendar';

Ember.Handlebars.makeBoundHelper('calendar', CalendarView);
Ember.Handlebars.makeBoundHelper('calendar', Calendar);
```

Using `CalendarView` in a template then becomes as simple as:
Using `Calendar` in a template then becomes as simple as:

```handlebars
{{calendar}}
Expand Down

0 comments on commit 0785d6a

Please sign in to comment.