wp-go/internal/actions/themehook.go
2023-02-14 19:47:47 +08:00

15 lines
315 B
Go

package actions
import (
"github.com/fthvgb1/wp-go/internal/theme"
"github.com/fthvgb1/wp-go/internal/theme/common"
"github.com/gin-gonic/gin"
)
func ThemeHook(scene int) func(*gin.Context) {
return func(ctx *gin.Context) {
t := theme.GetTemplateName()
theme.Hook(t, common.NewHandle(ctx, scene, t))
}
}