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 docs for HtmlHelper::importmap() #7985

Merged
merged 1 commit into from
Jan 21, 2025
Merged

Add docs for HtmlHelper::importmap() #7985

merged 1 commit into from
Jan 21, 2025

Conversation

ADmad
Copy link
Member

@ADmad ADmad commented Jan 20, 2025

No description provided.

@ADmad ADmad added this to the 5.next milestone Jan 20, 2025
}
},
"integrity": {
"/js/jquery.js": "sha256-hash"
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if we should make this example more complete, or skip it? Having a broken example in the docs doesn't feel good, as the copy-paster is going to have an error. For this to work correctly, we need the base64_encode(sha256) of the file contents.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have updated the integrity example.

@ADmad ADmad force-pushed the 5.2-importmap branch 3 times, most recently from d3c4364 to cd61a85 Compare January 21, 2025 08:42
@markstory markstory merged commit 25c978b into 5.next Jan 21, 2025
3 checks passed
@markstory markstory deleted the 5.2-importmap branch January 21, 2025 20:07
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