{"comment":{"created_at":"2011-10-24T19:00:30Z","body":"I though the same, but this is what the generated templates looks like:\r\n\r\n```html\r\n<script charset=\"utf-8\" type=\"text/javascript\">\r\n\r\nwindow.JST = window.JST || {};\r\nwindow.JST['js_app_templates_update_detail.jst'] = Handlebars.tmpl('<li class=\"update\">  <blockquote>{{message}}</blockquote>   <div class=\"meta\">       <time class=\"qtip\">{{time}}</time>     <div class=\"actions\">        <a title=\"Move to Top\" href=\"#\" rel=\"bump\" class=\"action move-to-top\">Move</a>        <a title=\"Edit\" href=\"#\" rel=\"edit\" class=\"action edit\">Edit</a>        <a title=\"Delete\" href=\"#\" rel=\"delete\" class=\"action delete\">Delete</a>      </div>   </div>  </li>');\r\n\r\n</script>\r\n```\r\n\r\nSo, should I call `JST.js_app_templates_update_detail.jst()`?. The extension and the path here makes a lot of noise.\r\n","updated_at":"2011-10-24T19:00:30Z","url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/comments/2507754","id":2507754,"user":{"avatar_url":"https://secure.gravatar.com/avatar/530d9da93ff450c7d345a88d024c462e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"530d9da93ff450c7d345a88d024c462e","url":"https://api.github.com/users/gerardo","id":327424,"login":"gerardo"}},"action":"created","issue":{"number":32,"created_at":"2011-10-23T23:05:32Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"Currently, the pipeline [documentation](http://readthedocs.org/docs/django-pipeline/en/latest/templates.html#) points out that given a template like `js/templates/photo/detail.jst`, it would be exposed as `JST.photo_detail()`. But as [you can see](https://github.com/cyberdelia/django-pipeline/blob/master/pipeline/compressors/__init__.py#L71), that's not the way it is working right now. The output is the JST object as a hashtable, where the key is the path of the file, using _ instead of / as path separators.\r\n\r\nI think the current(but undocumented) way to do it is better, but it should use / instead:  `JST['js/templates/photo/detail.jst']`. Or better yet, do like [jammit does](http://documentcloud.github.com/jammit/#jst):\r\n\r\n> When including templates from different directories, the common prefix is ignored, and the rest of the path becomes the name of the template:\r\n>\r\n>```yml\r\njavascripts:\r\n  workspace:\r\n    - app/views/accounts/badge.jst\r\n    - app/views/common/dialog.jst\r\n    - app/views/common/menu.jst\r\n```\r\n>Then, from your JavaScript:\r\n>\r\n>```javascript\r\n  JST['accounts/badge']\r\n  JST['common/dialog']\r\n  JST['common/menu']\r\n```\r\n\r\nDo you agree with this?","comments":2,"title":"JST Concatenation Strategy ","updated_at":"2011-10-24T19:00:30Z","url":"https://api.github.com/repos/cyberdelia/django-pipeline/issues/32","id":2029148,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/530d9da93ff450c7d345a88d024c462e?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"530d9da93ff450c7d345a88d024c462e","url":"https://api.github.com/users/gerardo","id":327424,"login":"gerardo"},"html_url":"https://github.com/cyberdelia/django-pipeline/issues/32","labels":[],"state":"open"},"legacy":{"issue_id":2029148,"comment_id":2507754}}