Re: adding XSLT templating to Django

2007-05-12 Thread anders conbere
On 5/12/07, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > > Eugene Morozov <[EMAIL PROTECTED]> writes: > > >> - there is proper separation between data and style, my JSON doesn't > >> include any stylistic information, only stuff that describes the data > > > > I still think that your example i

Re: adding XSLT templating to Django

2007-05-12 Thread Nic James Ferrier
Eugene Morozov <[EMAIL PROTECTED]> writes: >> - there is proper separation between data and style, my JSON doesn't >> include any stylistic information, only stuff that describes the data > > I still think that your example is not the best. "div" and "span" has > no semantic meaning, they're ju

Re: adding XSLT templating to Django

2007-05-12 Thread Eugene Morozov
On 12 май, 17:08, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > Eugene Morozov <[EMAIL PROTECTED]> writes: > > Sorry, I don't get the point. I think that XSLT is a way to separate > > presentation from data. But your json looks like some kind of HTML. I > > don't understand how this is better tha

Re: adding XSLT templating to Django

2007-05-12 Thread Nic James Ferrier
Eugene Morozov <[EMAIL PROTECTED]> writes: > On 11 май, 13:23, Nic James Ferrier <[EMAIL PROTECTED]> > wrote: >> def user_alerts(request, user_name): >> me = get_object_or_404(User, username=user_name) >> alerts = Alert.objects.filter(user=me, seen=False) >> return tfxslt.send_json(Ht

Re: adding XSLT templating to Django

2007-05-12 Thread Eugene Morozov
Hello Nic, On 11 май, 13:23, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > def user_alerts(request, user_name): > me = get_object_or_404(User, username=user_name) > alerts = Alert.objects.filter(user=me, seen=False) > return tfxslt.send_json(HttpResponse(), >

Re: adding XSLT templating to Django

2007-05-11 Thread Russell Keith-Magee
On 5/11/07, Nic James Ferrier <[EMAIL PROTECTED]> wrote: > > If there's any interest in this I'd consider trying to make my stuff > Django-fied enough to fit in sorta properly... maybe if you return a > special JSON/XSLT object to an HttpResponse or something. > > If anyone wants the xslt/json mod

adding XSLT templating to Django

2007-05-11 Thread Nic James Ferrier
I've been using Django for a few weeks now and I have to say, despite my general hatred of frameworks, I'm quite impressed with it. It is very fast to get up and going, the ORM works pretty well. New forms are really, really good. I don't like learning new template languages though... so I plugge