From 032bde9452ce6f3f66b88470f6b6da1a72ab5d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Werner?= Date: Sat, 8 Jul 2023 21:33:15 +0200 Subject: [PATCH] use new template docs in fiber docs --- docs/api/ctx.md | 2 +- docs/extra/faq.md | 19 ++++++++++--------- docs/guide/templates.md | 19 ++++++++++--------- 3 files changed, 21 insertions(+), 19 deletions(-) diff --git a/docs/api/ctx.md b/docs/api/ctx.md index 3549aaa8..f04e34fa 100644 --- a/docs/api/ctx.md +++ b/docs/api/ctx.md @@ -1406,7 +1406,7 @@ app.Get("/back", func(c *fiber.Ctx) error { ## Render -Renders a view with data and sends a `text/html` response. By default `Render` uses the default [**Go Template engine**](https://pkg.go.dev/html/template/). If you want to use another View engine, please take a look at our [**Template middleware**](https://github.com/gofiber/template). +Renders a view with data and sends a `text/html` response. By default `Render` uses the default [**Go Template engine**](https://pkg.go.dev/html/template/). If you want to use another View engine, please take a look at our [**Template middleware**](https://docs.gofiber.io/template). ```go title="Signature" func (c *Ctx) Render(name string, bind interface{}, layouts ...string) error diff --git a/docs/extra/faq.md b/docs/extra/faq.md index efac14b4..54dbca5d 100644 --- a/docs/extra/faq.md +++ b/docs/extra/faq.md @@ -76,16 +76,17 @@ We have a dedicated page explaining how error handling works in Fiber, see [Erro ## Which template engines does Fiber support? -Fiber currently supports 8 template engines in our [gofiber/template](https://github.com/gofiber/template) middleware: +Fiber currently supports 9 template engines in our [gofiber/template](https://docs.gofiber.io/template/) middleware: -* [Ace](https://github.com/yosssi/ace) -* [Amber](https://github.com/eknkc/amber) -* [Django](https://github.com/flosch/pongo2) -* [Handlebars](https://github.com/aymerick/raymond) -* [HTML](https://pkg.go.dev/html/template/) -* [Jet](https://github.com/CloudyKit/jet) -* [Mustache](https://github.com/cbroglie/mustache) -* [Pug](https://github.com/Joker/jade) +* [ace](https://docs.gofiber.io/template/ace/) +* [amber](https://docs.gofiber.io/template/amber/) +* [django](https://docs.gofiber.io/template/django/) +* [handlebars](https://docs.gofiber.io/template/handlebars) +* [html](https://docs.gofiber.io/template/html) +* [jet](https://docs.gofiber.io/template/jet) +* [mustache](https://docs.gofiber.io/template/mustache) +* [pug](https://docs.gofiber.io/template/pug) +* [slim](https://docs.gofiber.io/template/pug) To learn more about using Templates in Fiber, see [Templates](../guide/templates.md). diff --git a/docs/guide/templates.md b/docs/guide/templates.md index df38fac0..e37bc59b 100644 --- a/docs/guide/templates.md +++ b/docs/guide/templates.md @@ -48,16 +48,17 @@ app.Get("/", func(c *fiber.Ctx) error { ## Engines -Fiber team maintains [templates](https://github.com/gofiber/template) package that provides wrappers for multiple template engines: +Fiber team maintains [templates](https://docs.gofiber.io/template) package that provides wrappers for multiple template engines: -* [html](https://github.com/gofiber/template/tree/master/html) -* [ace](https://github.com/gofiber/template/tree/master/ace) -* [amber](https://github.com/gofiber/template/tree/master/amber) -* [django](https://github.com/gofiber/template/tree/master/django) -* [handlebars](https://github.com/gofiber/template/tree/master/handlebars) -* [jet](https://github.com/gofiber/template/tree/master/jet) -* [mustache](https://github.com/gofiber/template/tree/master/mustache) -* [pug](https://github.com/gofiber/template/tree/master/pug) +* [ace](https://docs.gofiber.io/template/ace/) +* [amber](https://docs.gofiber.io/template/amber/) +* [django](https://docs.gofiber.io/template/django/) +* [handlebars](https://docs.gofiber.io/template/handlebars) +* [html](https://docs.gofiber.io/template/html) +* [jet](https://docs.gofiber.io/template/jet) +* [mustache](https://docs.gofiber.io/template/mustache) +* [pug](https://docs.gofiber.io/template/pug) +* [slim](https://docs.gofiber.io/template/pug)