Skip to content

Commit f78d7e1

Browse files
Add docs from gofiber/fiber@9541a88
1 parent f8df2bb commit f78d7e1

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

docs/core/guide/templates.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ app := fiber.New(fiber.Config{
2828
})
2929
```
3030

31-
3231
### Supported Engines
3332

3433
The Fiber team maintains a [templates](https://docs.gofiber.io/template) package that provides wrappers for multiple template engines:
@@ -47,7 +46,6 @@ The Fiber team maintains a [templates](https://docs.gofiber.io/template) package
4746
Custom template engines can implement the `Views` interface to be supported in Fiber.
4847
:::
4948

50-
5149
```go title="Views interface"
5250
type Views interface {
5351
// Fiber executes Load() on app initialization to load/parse the templates
@@ -63,7 +61,6 @@ type Views interface {
6361
The `Render` method is linked to the [**ctx.Render\(\)**](../api/ctx.md#render) function that accepts a template name and binding data.
6462
:::
6563

66-
6764
## Rendering Templates
6865

6966
Once an engine is set up, a route handler can call the [**ctx.Render\(\)**](../api/ctx.md#render) function with a template name and binded data to send the rendered template.
@@ -76,9 +73,7 @@ func (c Ctx) Render(name string, bind Map, layouts ...string) error
7673
By default, [**ctx.Render\(\)**](../api/ctx.md#render) searches for the template name in the `ViewsLayout` path. To override this setting, provide the path(s) in the `layouts` argument.
7774
:::
7875

79-
8076
<Tabs>
81-
8277
<TabItem value="example" label="Example">
8378

8479
```go
@@ -211,7 +206,7 @@ app.Get("/", func (c fiber.Ctx) error {
211206
</TabItem>
212207
</Tabs>
213208

214-
- For more advanced template documentation, please visit the [gofiber/template GitHub Repository](https://github.com/gofiber/template).
209+
* For more advanced template documentation, please visit the [gofiber/template GitHub Repository](https://github.com/gofiber/template).
215210

216211
## Full Example
217212

0 commit comments

Comments
 (0)