mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
parent
a216a9319a
commit
07ee93a14d
@ -9,8 +9,7 @@ description = "How to use templates in Echo"
|
||||
## Template Rendering
|
||||
|
||||
`Context#Render(code int, name string, data interface{}) error` renders a template
|
||||
with data and sends a text/html response with status code. Templates can be registered
|
||||
using `Echo.SetRenderer()`, allowing us to use any template engine.
|
||||
with data and sends a text/html response with status code. Templates can be registered by setting `Echo.Renderer`, allowing us to use any template engine.
|
||||
|
||||
Example below shows how to use Go `html/template`:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user