A while back I wrote some middleware to improve XHTML usage
<http://code.djangoproject.com/ticket/3700>. Is this something that
could or should be included within Django?
XHTML is ideally sent with the application/xhtml+xml media type; however
it's normally delivered as text/html because older web browsers don't
support it. This middleware addresses the chicken-and-egg problem by
silently converting application/xhtml+xml content when it's delivered to
a non-compliant browser.
Possible use cases: (i) allowing "mobile" (XHTML Mobile Profile) content
to still be viewed by desktop HTML browsers; (ii) allowing XHTML sites
to make use of inline SVG (e.g. <http://intertwingly.net/>) whilst still
offering something for XHTML-challenged web browsers; (iii) making it
easier to use XForms in an intranet environment (e.g. when delivering
content to Internet Explorer 7 with an XForms plug-in).
Thank you,
Dave
> A while back I wrote some middleware to improve XHTML usage
> <http://code.djangoproject.com/ticket/3700>. Is this something that
> could or should be included within Django?
Nice stuff -- think I'll be using this a few times.
However, I'd say that it's a *bit* too specialized for direct
inclusion; while I personally find it useful, I'm just suspicious of
including anything in Django that doesn't have obvious wide appeal.
I'd say this is a *perfect* candidate for djangosnippets.org, though;
put it there and people will quickly be able to find it. That or a
Google Code project if you plan to add more stuff onto it...
Of course, what we really need is a CPAN-for-Django-bits-thingie... I
wish there was a middle ground between "included" and "not."
Jacob
Surely, you were thinking of Cheese Shop, right? :)
Seriously, though, how many special-purpose package management systems do we
need?
-Forest
--
Forest Bond
http://www.alittletooquiet.net
Sure, but without all the sucky parts :P
[There are, BTW, some Django-specific things that make direct Cheese
Shop integration a bit tricky, but there's an SoC project working on
that, so hopefully we'll get something cool out of that.]
Jacob
Hopefully this SoC project moves us towards that direction. Has there
been any updates from that student?
-Eric Florenzano
On Aug 1, 10:39 am, "Jacob Kaplan-Moss" <jacob.kaplanm...@gmail.com>
wrote:
-Eric Florenzano
Thanks for looking at it Jacob. I've followed your advice and placed it
on djangosnippets.org.
Regards,
Dave