# Render template to string

**URL:** <https://discuss.emberjs.com/t/render-template-to-string/9560>\
**Category:** Uncategorized\
**Created:** [January 27, 2016, 4:02am UTC](https://discuss.emberjs.com/t/render-template-to-string/9560 "2016-01-27T04:02:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brayancastrop](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/brayancastrop/32/11953_2.png) [@brayancastrop](https://discuss.emberjs.com/u/brayancastrop)\
**Post date:** [January 27, 2016, 4:02am UTC](https://discuss.emberjs.com/t/render-template-to-string/9560/1 "2016-01-27T04:02:38Z")

</div>

I’m using ember 1.13.8 and now i need to setup a controller property that returns an object with a html property

Before 1.13.x i could use a View and maybe renderBuffers but now that’s not an option as Views were deprecated

I’m using an addon (ember-c3 - [GitHub - Glavin001/ember-c3: Ember addon library for C3, a D3-based reusable chart library.](https://github.com/Glavin001/ember-c3)) which have an option to create custom tooltips by accepting an object with a key ‘contents’ and a HTML value, here is an example to illustrate the case

`{{c3-chart data=data tooltip=tooltip }}`

and the controller tooltip property

```
tooltip: Ember.computed('model', function() {
  return {
    contents: function (d, defaultTitleFormat, defaultValueFormat, color) {
        return ...; // here is where i need to compile a template to a string
    }
  };
})

```

i noticed i can access a template object by calling `container.lookup('template:path')` but it’s an object like this

```
{
  arity: 0
  isMethod: false
  isTop: true
  meta: Object
  raw: Object
  render: (self, env, options, blockArguments)
}

```

but have no idea how to use it in the case it’s useful

Any guidance will be appreciated, thanks in advance 😃
