1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-24 05:17:03 +00:00

Add example of the powerful 'templ' generated templates

This commit is contained in:
Gerasimos (Makis) Maropoulos
2023-12-13 02:18:16 +02:00
parent 7ffe4010b9
commit 9279ca5a27
9 changed files with 359 additions and 8 deletions

View File

@@ -1563,6 +1563,10 @@ type (
//
// app.HandleServer("/api/identity", otherApp)
func (api *APIBuilder) HandleServer(path string, server ServerHandler) {
if server == nil {
return
}
if app, ok := server.(serverBuilder); ok {
// Do an extra check for Build() error at any case
// the end-developer didn't call Build before.