diff --git a/_examples/view/layout/blocks/main.go b/_examples/view/layout/blocks/main.go index 62b86b4c..f65155fb 100644 --- a/_examples/view/layout/blocks/main.go +++ b/_examples/view/layout/blocks/main.go @@ -8,6 +8,7 @@ func main() { // Note, in Blocks engine, layouts // are used by their base names, the // blocks.LayoutDir(layoutDir) defaults to "./layouts". + // .Blocks(...).Layout("main") for default layout for all views, it can be modified through ctx.ViewLayout though. app.Get("/", index) diff --git a/_examples/view/template_blocks_0/views/500.html b/_examples/view/template_blocks_0/views/500.html index 37c58b58..bbdd7463 100644 --- a/_examples/view/template_blocks_0/views/500.html +++ b/_examples/view/template_blocks_0/views/500.html @@ -1,8 +1,3 @@ - {{ define "content" }}