mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
16 lines
409 B
GDScript
16 lines
409 B
GDScript
extends WebRoot
|
|
|
|
export(HTMLTemplate) var template : HTMLTemplate
|
|
|
|
var header : String
|
|
var footer : String
|
|
|
|
func _ready() -> void:
|
|
header = template.render(null, { "type": "header" })
|
|
footer = template.render(null, { "type": "footer" })
|
|
|
|
func _render_main_menu(request: WebServerRequest) -> void:
|
|
request.head = header
|
|
request.body += template.render(request, { "type": "menu" })
|
|
request.footer = footer
|