ITADN

Enhanced Features: html template support layout

#2954Openmycloudb 创建于 2026-04-27
M
mycloudbcommented
such as: layout.html ```html {{define "layout"}} <!DOCTYPE html> <html> <head> <title>{{index . "Title"}}</title> </head> <body> <header><h1>My Site</h1></header> {{template "content" .}} <footer>© copyright</footer> </body> </html> {{end}} ``` index.html ```html {{define "content"}} <p>Welcome to the home page!</p> {{end}} ``` I would like to implement enhanced features.
0 条评论