> > > With wicket, the template is just > > > a regular HTML with attribute that identify snippets of HTML that need > > > to be dynamically created. Then, the backend code can substitute these > > > snippets, usually by reusing them, and injecting dynamic content. > > > > You can do this with Django templates as well. Just create your own tags. > > yes, of course, but then it means the designer needs to use them, > plus, how do they exactly work?
http://www.djangoproject.com/documentation/templates/ http://www.djangoproject.com/documentation/templates_python/ >and the html looks very natural > [snip] > oh, but wicket supports dynamic content, ajax, everything So how what would a wicket template look like for non-html content? Say, text-only or CSV? It could be that wicket has non-html based tags as well -- I don't know. However if the tags are based on HTML then suddenly they don't look so "natural" anymore. That was my point about being design for more than HTML. > > > Also, wicket promotes the use of components, so, for > > > example, to have a date picker, you just put in your HTML the input > > > box for the date and a span for the calendar icon and in your code > > > create a date picker class and pass it the ids to these two items and > > > that's it: the javascript is included, any necessary HTML is taken > > > care for you, etc. > > > > This is another example of what you can do with tags in Django templates. > > > > yes, everything i can do in wicket, i can do in django. but everything > i can do in django i can do in php. but i guess you still find django > better, right? And everything I can do in Django I can do in pure Python . . . but that's not really what we're talking about. I'm only attempting to explain to you that there is nothing in the Django template solution that prevents you from doing anything that you did in wicket. It could be that there's a python-based template system that has syntax a little closer to what you're used to. You might be interested in this FAQ entry: http://www.djangoproject.com/documentation/faq/#i-can-t-stand-your-template-language-do-i-have-to-use-it -- -Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

