Skip to content

Commit

Permalink
head_content fix
Browse files Browse the repository at this point in the history
  • Loading branch information
essenciary committed Oct 27, 2020
1 parent f252ca7 commit cf503e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Dashboard.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ end

const tagname = "st-dashboard"

function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true, title::String = "Stipple Dashboard",
function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true, title::String = "Stipple Dashboard", head_content::String = "",
class::String = "", style::String = "", channel::String = Genie.config.webchannels_default_route, kwargs...)
content = if isa(content, Vector)
push!(pushfirst!(content, "<$tagname>"), "</$tagname>")
Expand All @@ -28,7 +28,8 @@ function dashboard(elemid, content::Union{String,Vector}; partial::Bool = true,
end
kwargs = NamedTuple(delete!(Dict(kwargs...), :id), :id, elemid)

Stipple.layout(Genie.Renderer.Html.div(content; kwargs...), partial=partial, title=title, class=class, style=style, channel=channel)
Stipple.layout(Genie.Renderer.Html.div(content; kwargs...); partial=partial, title=title, class=class,
head_content=head_content, style=style, channel=channel)
end

end

2 comments on commit cf503e9

@essenciary
Copy link
Member Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/24329

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.3 -m "<description of version>" cf503e9f61c69dbe0f3a55bdf69121cea4457bc8
git push origin v0.2.3

Please sign in to comment.