add support for pygame scripts
This commit is contained in:
parent
fe4b003971
commit
3be22c5654
6 changed files with 180 additions and 89 deletions
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#let css-list = state("css-list", ())
|
||||
#let js-list = state("js-list", ())
|
||||
#let additionnal-head-tags = state("additionnal-head-tags", ())
|
||||
|
||||
/// Add string `css` to `css-list` if not already present
|
||||
#let add-css(css) = context {
|
||||
|
|
@ -14,6 +15,11 @@
|
|||
js-list.update(x => if js in x { x } else { x + (js,) })
|
||||
}
|
||||
|
||||
/// Add additionnal html tag to insert in <head>
|
||||
#let add-tag-in-head(tag) = context {
|
||||
additionnal-head-tags.update(x => if tag in x { x } else { x + (tag, ) })
|
||||
}
|
||||
|
||||
/// Concatenate all css found in css-list at the end of the document
|
||||
#let get-css() = context {
|
||||
css-list.final().join("\n\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue