Skip to content
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

ICS: support different presentation (file, HTML) #185

Merged
merged 4 commits into from
Jan 26, 2024

Conversation

alies-dev
Copy link
Collaborator

Context and Purposes

Idea: a lot of people asking to support output of the ICS to a file.
There were few PRs, all of them used $options argument that already used for optional ICS components and properties. Mixing them with presentation logic (that is not related to ICS format at all) is a bad practice.

By this PR I tried to implement the same functionality but keep additional components and presentation logic separated.

This should also unblock other PRs to add more optional ICS components and properties, like this one: https://github.com/spatie/calendar-links/pull/178/files

@alies-dev alies-dev self-assigned this Jan 26, 2024
@alies-dev alies-dev mentioned this pull request Jan 26, 2024
Copy link
Contributor

@atymic atymic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Happy with this :)

src/Generators/Ics.php Outdated Show resolved Hide resolved
@alies-dev alies-dev merged commit 824c1b6 into master Jan 26, 2024
1 of 15 checks passed
@alies-dev alies-dev deleted the ICS_presentationOptions branch January 26, 2024 09:32
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