-
Notifications
You must be signed in to change notification settings - Fork 139
New RSS component #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New RSS component #252
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't it cumbersome to require an RFC-822 date ?
I think people should be able to use native date objects from their database (which are interpreted as ISO 8601 by sqlpage).
Also, we should probably add support for podcast-specific attributes, which shouldn't require a lot of changes and would be useful.
I'm making a few changes directly in the pr.
I made a few changes, let me know what you think. We still need to provide a RFC-822 date formater to the templates to make this work. |
Yes, perfect. It's ok for me |
* Produces a data flow in the RSS format * add documentation and rss reference * more complete rss component, with support for podcasts * podcast changes * documentation * format dates as rfc2822 * extract template helpers * extract more helpers * remove unnecassary error handling * fmt * two-param helpers * rfc2822_date_helper * test rfc date formatter * accept dates with or without time * remove unneeded line breaks --------- Co-authored-by: Olivier Auverlot <[email protected]> Co-authored-by: lovasoa <[email protected]>
Produces a data flow in the RSS format. To use this component, you must first returning an HTTP header with the "application/rss+xml" content type (see http_header component). Next, you must use the shell-empty component to avoid that SQLPage generates HTML code. TIPS: If you don''t want change the page shell, you can also use the _sqlpage_embed URL parameter.