mirror of
https://github.com/ordinary-dev/phoenix
synced 2024-09-20 03:40:29 +05:00
13 lines
354 B
Go
13 lines
354 B
Go
|
package views
|
||
|
|
||
|
import (
|
||
|
"github.com/gin-gonic/gin"
|
||
|
"github.com/ordinary-dev/phoenix/config"
|
||
|
)
|
||
|
|
||
|
// Fill in the necessary parameters from the settings and output html.
|
||
|
func Render(ctx *gin.Context, cfg *config.Config, status int, templatePath string, params map[string]any) {
|
||
|
params["WebsiteTitle"] = cfg.Title
|
||
|
ctx.HTML(status, templatePath, params)
|
||
|
}
|