diff --git a/template_versioned_docs/version-ace_v2.x.x/django/README.md b/template_versioned_docs/version-ace_v2.x.x/django/README.md index 71ba37de059..e14c9b6fce2 100644 --- a/template_versioned_docs/version-ace_v2.x.x/django/README.md +++ b/template_versioned_docs/version-ace_v2.x.x/django/README.md @@ -116,7 +116,7 @@ var viewsAsssets embed.FS func main() { // Create a new engine - engine := NewPathForwardingFileSystem(http.FS(viewsAsssets), "/views", ".django") + engine := django.NewPathForwardingFileSystem(http.FS(viewsAsssets), "/views", ".django") // Pass the engine to the Views app := fiber.New(fiber.Config{ @@ -195,6 +195,7 @@ c.Render("index", fiber.Map{ "Fiber": "Hello, World!\n\nGreetings from Fiber Team", "MyKey": c.Locals("my-key"), }) +``` ### AutoEscape is enabled by default diff --git a/template_versioned_docs/version-ace_v2.x.x/html/TEMPLATES_CHEATSHEET.md b/template_versioned_docs/version-ace_v2.x.x/html/TEMPLATES_CHEATSHEET.md index 274ee92ec43..e83f761ca82 100644 --- a/template_versioned_docs/version-ace_v2.x.x/html/TEMPLATES_CHEATSHEET.md +++ b/template_versioned_docs/version-ace_v2.x.x/html/TEMPLATES_CHEATSHEET.md @@ -85,7 +85,7 @@ Go templates can also be used with javascript. Structs and maps will be expanded ```js // Javascript - var cat = {"Name":"Sam", "Age" 12} + var cat = {"Name":"Sam", "Age":12} ``` --- diff --git a/template_versioned_docs/version-ace_v2.x.x/slim/README.md b/template_versioned_docs/version-ace_v2.x.x/slim/README.md index 63b7bc82793..8d214677bd7 100644 --- a/template_versioned_docs/version-ace_v2.x.x/slim/README.md +++ b/template_versioned_docs/version-ace_v2.x.x/slim/README.md @@ -37,7 +37,7 @@ html title Main include ../partials/meta.slim body - | {{embed}} + == embed ``` ```go