mirror of
https://github.com/goonstation/goonstation-2020.git
synced 2026-07-12 15:42:21 +01:00
19 lines
394 B
Plaintext
19 lines
394 B
Plaintext
/datum/tag/page
|
|
var/tmp/datum/tag/doctype/dt = new
|
|
var/tmp/datum/tag/head = new /datum/tag("head")
|
|
var/tmp/datum/tag/body = new /datum/tag("body")
|
|
|
|
New()
|
|
..("html")
|
|
|
|
addChildElement(head)
|
|
addChildElement(body)
|
|
|
|
toHtml()
|
|
return dt.toHtml() + ..()
|
|
|
|
proc/addToHead(var/datum/tag/child)
|
|
head.addChildElement(child)
|
|
|
|
proc/addToBody(var/datum/tag/child)
|
|
body.addChildElement(child) |