package components templ Search(tdata TemplateData, r ResultData) { } templ SearchPage(tdata TemplateData, r ResultData) { @Page(tdata) { @script(tdata.Assets.Scripts["static/search.js"]) @Search(tdata, r)
{ children... }
} }