return string of html rendered template

I am trying to insert HTML content to tinymce using it’s SDK via

document.getElementById('terms-n-conditions').value = content;

Thing is, I want content to be the generated from Django’s templating engine where the file is located at templates/server/partials/terms-content.html because I have some jinja code which I want parsed and then set to a JavaScript variable.

<img src="{% static 'images/signature.gif' %}" />

See render_to_string.