Skip to content

Accept Cache Key for Inline & Preloaded Module in Importmap Tag #176

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

Closed
wants to merge 2 commits into from

Conversation

rience
Copy link

@rience rience commented Feb 17, 2023

Hello,

We have multi-tenant application and needed to generate different importmap tags for each tenant. I can see in #88 that some helpers already support passing custom cache keys, however, javascript_importmap_tags does not support that.

I couldn't make application working by rendering only javascript_inline_importmap_tag and javascript_importmap_module_preload_tags in <head />. I'm not sure about other shim ones and javascript_import_module_tag helpers - they needed to be in there.

So that PR allows you to pass in custom cache keys to javascript_importmap_tags.

  • inline JS modules
  • preloaded JS modules

into javascript_importmap_tags.

@rience rience force-pushed the pass-importmap-json-tags branch from 2cab3c1 to 5a59187 Compare February 19, 2023 11:15
@dhh
Copy link
Member

dhh commented Jun 18, 2023

Let's solve this via #187 instead.

@dhh dhh closed this Jun 18, 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
Development

Successfully merging this pull request may close these issues.

2 participants