calebsmith / django-template-debug

A small collection of template tags for debugging and introspecting templates
BSD 3-Clause "New" or "Revised" License
74 stars 11 forks source link

Add an easy way to render a template string #31

Closed calebsmith closed 9 years ago

calebsmith commented 9 years ago

While within a set trace, it would be nice to easily render some input as a template interactively. In other words, the set trace naturally gives a Python interface to the template context and makes some utilities, such as details() available, but there is a small disconnect of then expressing that work again in the template file and waiting for a refresh, which is vaguely a "compile time" approach.

Instead, it seems very useful to me to have something like a render function that just renders an arbitrary string as a template, using the current template context