import Ember from "ember-metal/core";
// var emberDeprecate = Ember.deprecate;

import EmberHandlebars from "ember-handlebars-compiler";
/**
@module ember
@submodule ember-handlebars
*/

/**
  `template` allows you to render a template from inside another template.
  This allows you to re-use the same template in multiple places. For example:

  ```html
  <script type="text/x-handlebars" data-template-name="logged_in_user">
    {{#with loggedInUser}}
      Last Login: {{lastLogin}}
      User Info: {{template "user_info"}}
    {{/with}}
  </script>
  ```

  ```html
  <script type="text/x-handlebars" data-template-name="user_info">
    Name: <em>{{name}}</em>
    Karma: <em>{{karma}}</em>
  </script>
  ```

  ```handlebars
  {{#if isUser}}
    {{template "user_info"}}
  {{else}}
    {{template "unlogged_user_info"}}
  {{/if}}
  ```

  This helper looks for templates in the global `Ember.TEMPLATES` hash. If you
  add `<script>` tags to your page with the `data-template-name` attribute set,
  they will be compiled and placed in this hash automatically.

  You can also manually register templates by adding them to the hash:

  ```javascript
  Ember.TEMPLATES["my_cool_template"] = Ember.Handlebars.compile('<b>{{user}}</b>');
  ```

  @deprecated
  @method template
  @for Ember.Handlebars.helpers
  @param {String} templateName the template to render
*/
export default function templateHelper(name, options) {
  Ember.deprecate("The `template` helper has been deprecated in favor of the `partial` helper. Please use `partial` instead, which will work the same way.");

  options.helperName = options.helperName || 'template';

  return EmberHandlebars.helpers.partial.apply(this, arguments);
}

@@ -34,32 +34,11 @@
 re%22;
-%0A
+ 
 //
- var emberDeprecate =
  Emb
@@ -163,1068 +163,12 @@
 */%0A%0A
+
 /**%0A
-  %60template%60 allows you to render a template from inside another template.%0A  This allows you to re-use the same template in multiple places. For example:%0A%0A  %60%60%60html%0A  %3Cscript type=%22text/x-handlebars%22 data-template-name=%22logged_in_user%22%3E%0A    %7B%7B#with loggedInUser%7D%7D%0A      Last Login: %7B%7BlastLogin%7D%7D%0A      User Info: %7B%7Btemplate %22user_info%22%7D%7D%0A    %7B%7B/with%7D%7D%0A  %3C/script%3E%0A  %60%60%60%0A%0A  %60%60%60html%0A  %3Cscript type=%22text/x-handlebars%22 data-template-name=%22user_info%22%3E%0A    Name: %3Cem%3E%7B%7Bname%7D%7D%3C/em%3E%0A    Karma: %3Cem%3E%7B%7Bkarma%7D%7D%3C/em%3E%0A  %3C/script%3E%0A  %60%60%60%0A%0A  %60%60%60handlebars%0A  %7B%7B#if isUser%7D%7D%0A    %7B%7Btemplate %22user_info%22%7D%7D%0A  %7B%7Belse%7D%7D%0A    %7B%7Btemplate %22unlogged_user_info%22%7D%7D%0A  %7B%7B/if%7D%7D%0A  %60%60%60%0A%0A  This helper looks for templates in the global %60Ember.TEMPLATES%60 hash. If you%0A  add %60%3Cscript%3E%60 tags to your page with the %60data-template-name%60 attribute set,%0A  they will be compiled and placed in this hash automatically.%0A%0A  You can also manually register templates by adding them to the hash:%0A%0A  %60%60%60javascript%0A  Ember.TEMPLATES%5B%22my_cool_template%22%5D = Ember.Handlebars.compile('%3Cb%3E%7B%7Buser%7D%7D%3C/b%3E');%0A  %60%60%60%0A%0A
   @d

Remove documentation for {{template}}