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

Add fine-grained mixed-content support to markup output formats. #83

Merged
merged 1 commit into from
Jan 5, 2023

Conversation

nolaviz
Copy link
Contributor

@nolaviz nolaviz commented Aug 25, 2022

The existing logic is all-or-nothing: either an output format permits mixed content, in which case output of any other format may be interspersed in it, or it does not - and mixed content is completely disallowed. (The latter is recommended, as mixed content often indicates an application bug).

This PR enables an output format to enable mixed content while implementing an outputForeign method, which can inspect the foreign output's MIME type, and either pass it through, block it, or even output the foreign-format content using the new format. This e.g. enables a custom format to embed (and custom-escape) HTML that was provided in the data model as TemplateHTMLOutputModel rather than a plain string.

@nolaviz nolaviz marked this pull request as ready for review August 25, 2022 08:39
@ddekany
Copy link
Contributor

ddekany commented Dec 19, 2022

Do you have an ICLA (Individual Contributor License Agreement) at Apache?

@nolaviz
Copy link
Contributor Author

nolaviz commented Dec 28, 2022

Yes, I have an ICLA (under my @google.com email address).

@ddekany
Copy link
Contributor

ddekany commented Dec 28, 2022

OK, got the ICLA. (Never mind my deleted message.) Will double check if it's how we want this, then merge.

@ddekany ddekany merged commit 836903b into apache:2.3-gae Jan 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants