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

Support mixed use of _ and - in launch parameter HTML attributes #2953

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Jul 13, 2024

The latest version of PlutoPages.jl has a bug where the slider_server_url setting is ignored. See JuliaPluto/PlutoPages.jl#1

This is because of this commit:

JuliaPluto/PlutoPages.jl@0890803

where the attributes are now passed to HypertextLiteral as a named tuple. The problem is that HypertextLiteral converts _ to - in attribute names (probably because this is better). You can see it in the HTML:

image

This PR adds a patch to Pluto to also read attributes that use - in the name instead of _.

This will fix JuliaPluto/PlutoPages.jl#1

Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="fix-launch-params-attribute-underscore")
julia> using Pluto

@fonsp fonsp merged commit 2a91679 into main Jul 13, 2024
3 of 4 checks passed
@fonsp fonsp deleted the fix-launch-params-attribute-underscore branch July 13, 2024 12:21
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.

pluto_slider_server_url setting in PlutoDeployment.toml is not being respected
1 participant