curry the example webpage() function in a common lib.typ
This commit is contained in:
parent
7fe9b99535
commit
500a6ad181
5 changed files with 46 additions and 81 deletions
|
|
@ -39,12 +39,18 @@
|
|||
|
||||
/// Concatenate all css found in css-list at the end of the document
|
||||
#let get-css(page-label) = context {
|
||||
html.style(css-list.at(label(str(page-label) + "-end")).join("\n\n"))
|
||||
let end-page-label = label(str(page-label) + "-end")
|
||||
if css-list.at(end-page-label) != () {
|
||||
html.style(css-list.at(end-page-label).join("\n\n"))
|
||||
} else {}
|
||||
}
|
||||
|
||||
/// Concatenate all js found in js-list at the end of the document
|
||||
#let get-js(page-label) = context {
|
||||
html.script(js-list.at(label(str(page-label) + "-end")).join("\n\n"))
|
||||
let end-page-label = label(str(page-label) + "-end")
|
||||
if js-list.at(end-page-label) != () {
|
||||
html.script(js-list.at(end-page-label).join("\n\n"))
|
||||
} else {}
|
||||
}
|
||||
|
||||
#let reset-page-states() = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue