Add ghost client to renderer handler

This commit is contained in:
2021-12-03 04:01:50 +01:00
parent 7819567e78
commit d017015662
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -5,11 +5,14 @@ import (
routing "github.com/jackwhelpton/fasthttp-routing/v2"
"github.com/valyala/fasthttp"
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/ghost"
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/templates"
)
// Renderer is the main handler that contains all routes handlers
type Renderer struct {
GhostClient ghost.Client
Base string
router *routing.Router