epeli/requirejs-hbs — pull request #6 by kusmierz (2013-10-31 16:10:44+00:00)
Title: Better FS path generation

I can't build my app, because of wrong path of `hbs!` template.

See error log:

```bash
$ r.js -o build.js

Tracing dependencies for: app
Error: ENOENT, no such file or directory '(...)\public\js\lib\templates\app\client\orders\modal\comments.html'
In module tree:
app/client/orders/index
hbs

Error: Error: ENOENT, no such file or directory '(...)\public\js\lib\templates\app\client\orders\modal\comments.html'
In module tree:
app/client/orders/index
hbs

at Object.fs.openSync (fs.js:427:18)
```

I have this file in `public/js/templates/app/client/orders/modal/comments.html`. In app.js:

```js
require.config({
'baseUrl': require.toUrl('lib'),
'paths': {
'app': '../app',
'templates': '../templates'
}
}
```

But after my little patch should work.