tchak/rasputin — Issue #13: How to use Slim with rasputin
Author: Nerian
Created: 2012-01-17 15:55:34+00:00
State: open

Hi,

I want to use Rasputin with Slim but I am having some troubles.

assets/javascript/application/app.js

```js
App = Ember.Application.create();

App.example = Ember.View.create({
templateName: 'example',
});

App.example.appendTo("#menu-box")
```

assets/javascript/app/templates/example.js.hbs.slim

```js
h1 Markup examples
```

assets/javascript/application.js.coffee

```coffee
#= require jquery
#= require jquery_ujs
#= require jquery-ui
#= require ember
#= require ember-data
#= require templates/all.js
#= require application/app.js
```

I get the following errors:

```js
GET http://myapp.dev/assets/templates/example.js.slim?body=1 404 (Not Found)
app.js:15Uncaught TypeError: Cannot call method 'appendTo' of undefined
ember.js:10872Uncaught Error: - Unable to find template "example".
```

And nothing gets displayed. What am I doing wrong?