On Thu, Feb 28, 2013 at 10:46 AM, Dong Wang <chinuxw...@gmail.com> wrote: > It seems "django.forms.widgets" is designed to support only reusable input > widgets used in forms, does Django support general reusable UI widgets like > tornado.web.UIModule ? >
Yes, Django allows you to define custom template tags that can do anything you want. The closest equivalent to a UIModule is a template inclusion tag, which allows you to define a context and a template that uses that context. https://docs.djangoproject.com/en/1.4/howto/custom-template-tags/ Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.