use new template docs in fiber docs

pull/2326/head
René Werner 2023-07-08 21:33:15 +02:00
parent 70aec2b4ca
commit 032bde9452
3 changed files with 21 additions and 19 deletions

View File

@ -1406,7 +1406,7 @@ app.Get("/back", func(c *fiber.Ctx) error {
## Render ## 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" ```go title="Signature"
func (c *Ctx) Render(name string, bind interface{}, layouts ...string) error func (c *Ctx) Render(name string, bind interface{}, layouts ...string) error

View File

@ -76,16 +76,17 @@ We have a dedicated page explaining how error handling works in Fiber, see [Erro
## Which template engines does Fiber support? ## 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) * [ace](https://docs.gofiber.io/template/ace/)
* [Amber](https://github.com/eknkc/amber) * [amber](https://docs.gofiber.io/template/amber/)
* [Django](https://github.com/flosch/pongo2) * [django](https://docs.gofiber.io/template/django/)
* [Handlebars](https://github.com/aymerick/raymond) * [handlebars](https://docs.gofiber.io/template/handlebars)
* [HTML](https://pkg.go.dev/html/template/) * [html](https://docs.gofiber.io/template/html)
* [Jet](https://github.com/CloudyKit/jet) * [jet](https://docs.gofiber.io/template/jet)
* [Mustache](https://github.com/cbroglie/mustache) * [mustache](https://docs.gofiber.io/template/mustache)
* [Pug](https://github.com/Joker/jade) * [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). To learn more about using Templates in Fiber, see [Templates](../guide/templates.md).

View File

@ -48,16 +48,17 @@ app.Get("/", func(c *fiber.Ctx) error {
## Engines ## 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://docs.gofiber.io/template/ace/)
* [ace](https://github.com/gofiber/template/tree/master/ace) * [amber](https://docs.gofiber.io/template/amber/)
* [amber](https://github.com/gofiber/template/tree/master/amber) * [django](https://docs.gofiber.io/template/django/)
* [django](https://github.com/gofiber/template/tree/master/django) * [handlebars](https://docs.gofiber.io/template/handlebars)
* [handlebars](https://github.com/gofiber/template/tree/master/handlebars) * [html](https://docs.gofiber.io/template/html)
* [jet](https://github.com/gofiber/template/tree/master/jet) * [jet](https://docs.gofiber.io/template/jet)
* [mustache](https://github.com/gofiber/template/tree/master/mustache) * [mustache](https://docs.gofiber.io/template/mustache)
* [pug](https://github.com/gofiber/template/tree/master/pug) * [pug](https://docs.gofiber.io/template/pug)
* [slim](https://docs.gofiber.io/template/pug)
<Tabs> <Tabs>
<TabItem value="example" label="Example"> <TabItem value="example" label="Example">