If your view puts the source code in a context variable called source, your template might look like this:
<pre>
{{ source|escape }}
</pre>
The escape filter will escape from certain characters to make sure that the HTML is displayed correctly.
If you just want to display the source of the encoded template in your template, there are two options.
Use HTML escaping to do this and remove the XMP tags.
&
&
templatetag:
{% templatetag openbrace %} instead of }
{% templatetag closebrace %} instead of {
.. .