Skip to content

Commit

Permalink
Make div_content settable from a page (#984)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanvanlier authored Oct 11, 2022
1 parent 6f24bef commit d6f2303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/manager/write_page.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Convenience function to assemble the html of a page out of its parts:
function build_page(head, content, pgfoot, foot)
# (legacy support) if div_content is offered explicitly, it takes
# precedence, otherwise use defaults
dc = globvar("div_content")
dc = locvar("div_content")
if isempty(dc)
content_tag = globvar("content_tag")
content_class = globvar("content_class")
content_id = globvar("content_id")
content_tag = locvar("content_tag")
content_class = locvar("content_class")
content_id = locvar("content_id")
else
content_tag = "div"
content_class = dc
Expand Down

0 comments on commit d6f2303

Please sign in to comment.