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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user