On Wed, Jun 15, 2011 at 3:01 PM, Rodrigo Gomes <rgo...@gmail.com> wrote: > Hi, > I was looking for some 'html helpers' in django as we have on rails or java > (with tagfiles or taglibs), but I saw that it doesn't exist, according to > this stackoverflow response: > http://stackoverflow.com/questions/61451/does-django-have-html-helpers > The guy suggested to write custom template tags, and pointed to this > pageĀ https://docs.djangoproject.com/en/1.2/howto/custom-template-tags/ > But I think that I'm missing something. Is it so hard to write a simple > custom select box, for example? I need to write a parser, a render and put > in the html in another file? Or there is a easer way to do that? > What I want is just write some custom html components (inputs) with specific > behavior. > Any tips? > Thanks, > Rodrigo Gomes >
The original advice stands - template inclusion tags are just a few lines of code + the HTML file. https://docs.djangoproject.com/en/1.3/howto/custom-template-tags/#inclusion-tags Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.