[gd_resource type="HTMLTemplate" load_steps=3 format=2] [ext_resource path="res://templates/Root.phtpl" type="HTMLTemplateData" id=1] [sub_resource type="GDScript" id=1] script/source = "extends HTMLTemplate func _render(request: WebServerRequest, data: Dictionary) -> String: if data[\"type\"] == \"header\": return get_and_render_template(@\"Header\", data) elif data[\"type\"] == \"footer\": return get_and_render_template(@\"Footer\", data) else: var user : User = request.get_meta(\"user\", null) data[\"user\"] = user if user: return get_and_render_template(@\"MainMenuLoggedIn\", data) else: return get_and_render_template(@\"MainMenu\", data) " [resource] templates = [ ExtResource( 1 ) ] template_override/add_key_button = null template_defaults/add_key_button = null script = SubResource( 1 )