<?xml version="1.0" encoding="UTF-8"?>
<response>
  <status>success</status>
  <result>
    <project>
      <id>18717</id>
      <name>django-cheetahtemplate</name>
      <created_at>2008-10-07T11:49:29Z</created_at>
      <updated_at>2009-10-06T13:14:16Z</updated_at>
      <description>Cheetah template engine for DjangoUsage Use the render_cheetah_response shortcut just as you would use render_to_response  Use the CheetahTemplate class to render contexts in your views from text or file News - Now released a version which is the stand alone module django_cheetahtemplates and contains the application of the example below. See the source svn repository for the most up to date code. 

ExamplePut this in your views  

from django_cheetahtemplates import render_cheetah_response,CheetahTemplate
from django.template import Context
from django.http import HttpResponse

def hello(request):
    # Use shortcut
    return render_cheetah_response('hello.tmpl', {'myvar':'hello world','range':range} )

def hello2(request):
    # Create and render context
    context = Context({'myvar':'hello'})
    context['range'] = range
    template = CheetahTemplate(filename='hello.tmpl')
    return HttpResponse(template.render(context))Then create hello.tmpl somewhere in your TEMPLATE_DIRS 

$myvar
#for i in $range(10)
$i#slurp
#end forWhen you go to the url linked to either hello or hello2 you will see this 

hello world 0123456789Capabilities: 

Django context/template rendering compatibility with CheetahTemplate class.  Shortcut replacement for render_to_response =&gt; render_cheetah_response 

TODO: 

Cheetah template path search (always defaults to your project directory when trying to include files) Fix: find your template from there with relative links?  Transfer over filters to cheetah format Create URL shortcuts for generic cheetah template views (like 'direct_to_template' in urls.py)</description>
      <homepage_url>http://code.google.com/p/django-cheetahtemplate</homepage_url>
      <download_url></download_url>
      <url_name>django-cheetahtemplate</url_name>
      <user_count>0</user_count>
      <average_rating></average_rating>
      <rating_count>0</rating_count>
      <analysis_id>720658</analysis_id>
      <analysis>
        <id>720658</id>
        <project_id>18717</project_id>
        <updated_at>2009-12-17T12:18:54Z</updated_at>
        <logged_at>2009-12-17T12:18:44Z</logged_at>
        <min_month>2007-10-01T00:00:00Z</min_month>
        <max_month>2009-09-01T00:00:00Z</max_month>
        <twelve_month_contributor_count>1</twelve_month_contributor_count>
        <total_code_lines>43</total_code_lines>
        <main_language_id>9</main_language_id>
        <main_language_name>Python</main_language_name>
      </analysis>
      <licenses>
        <license>
          <name>bsd</name>
          <nice_name>BSD Copyright</nice_name>
        </license>
      </licenses>
    </project>
  </result>
</response>
