[PATCH] gitweb: Atom feeds (was: gitweb: Make RSS feed output prettier)

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Thursday, November 16, 2006 - 5:45 pm

Jakub Narebski wrote:

That's ok for rendered HTML output, but in my experience, the way feed
readers interpret that ranges from "badly" to "not at all"; it's better
to stick to explicit structure hints only in feeds. /-:

So, this is the only thing I haven't fixed in the attached patch (:


I can see that, but it would be very useful on aggregation sites like
http://planet.sbcl.org/. You mentioned on IRC that you'd prefer to
forward-port the current RSS generation to a more modern feed format
like Atom 1.0.

I took the liberty to back out that change from the RSS generator, and
implement Atom 1.0 output that is more fully featured. For testing, I
left both in. Both feeds validate at feedvalidator.org for me, the
choice is yours (:


The attached patch doesn't use to_utf8 on already-escaped strings anymore.


I changed that, too.


Thanks for the hint; I included that in the Atom output and re-worked
the RSS generator to not use the hideous regexp anymore.


Okay; I changed all occurrences of esc_html where URLs are escaped to
use esc_url.

In addition to the above points, the attached patch emits a
Last-Changed: HTTP response header field, and doesn't compute the feed
body if the HTTP request type was HEAD. This helps keep the web server
load down for well-behaved feed readers that check if the feed needs
updating.

Hope you like it,
-- 
Andreas Fuchs, (http://|im:asf@|mailto:asf@)boinkor.net, antifuchs
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] gitweb: Make RSS feed output prettier, Jakub Narebski, (Tue Nov 14, 8:24 pm)
[PATCH] gitweb: Atom feeds (was: gitweb: Make RSS feed outpu..., Andreas Fuchs, (Thu Nov 16, 5:45 pm)
Re: [PATCH] gitweb: Atom feeds, Junio C Hamano, (Fri Nov 17, 5:01 am)
Re: [PATCH] gitweb: Atom feeds, Jakub Narebski, (Fri Nov 17, 7:36 am)