Skip to content

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

Merged
merged 15 commits into from
Mar 5, 2024
Merged

New RSS component #252

merged 15 commits into from
Mar 5, 2024

Conversation

olivierauverlot
Copy link
Contributor

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.

Copy link
Collaborator

@lovasoa lovasoa left a 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.

@lovasoa
Copy link
Collaborator

lovasoa commented Mar 4, 2024

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.

@olivierauverlot
Copy link
Contributor Author

Yes, perfect. It's ok for me

@lovasoa lovasoa merged commit eaee698 into sqlpage:main Mar 5, 2024
lovasoa added a commit that referenced this pull request Mar 5, 2024
* 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]>
@olivierauverlot olivierauverlot deleted the rss branch April 21, 2025 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants