djangosnippets.org: Latest snippets posted by fredd4http://djangosnippets.org/users/fredd4/2008-02-20T11:27:52.684665-06:00fredd4extend tag with cache
2008-02-20T11:27:52.684665-06:00fredd4http://djangosnippets.org/snippets/609/<p>By default extend tag don't cache parents template. This is extend tag with patch. Workaround for bug: http://code.djangoproject.com/ticket/6586</p>
Freely redistributabledjango_template decorator
2008-02-13T03:28:22.856830-06:00fredd4http://djangosnippets.org/snippets/596/<p>Easy way to caching template.</p>
<p>Very simple usage:</p>
<pre><code> @django_template("my_site.html")
def master_home(request):
variables = { 'title' : "Hello World!" }
return variables
</code></pre>
Freely redistributable