首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > django-cheetahtemplate

django-cheetahtemplate

  • 资源大小:1.81 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

Cheetah template engine for Django Usage 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. ## Example ## Put this in your views ``` from djangocheetahtemplates import rendercheetah_response,CheetahTemplate from django.template import Context from django.http import HttpResponse def hello(request): # Use shortcut return rendercheetahresponse("hello.tmpl", {"myvar":"hello world","range":range} ) def hello2(request): # Create and render context context = Context({"myvar":"hello"}) context["range"]

文 件 列 表

README.txt
setup.py
django_cheetahtemplates
example
urls.py
__init__.py~
__init__.py
example
hello.tmpl

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.174104s