kyra/context.go

24 lines
404 B
Go
Raw Permalink Normal View History

2024-08-02 18:30:32 +03:00
package kyra
2024-08-02 18:30:32 +03:00
import httpx "surdeus.su/core/xgo/v2/stdlib/http"
import "surdeus.su/util/kyra/mdx"
// Context key type for internal usage.
type CKey string
const (
KeyValues CKey = "values"
)
type ContextValues struct {
2024-08-02 18:30:32 +03:00
Request *httpx.Request
Global any
Markdown *mdx.Markdown
IsIndex bool
IndexSuffix string
2024-08-02 18:30:32 +03:00
PPExt string
SourcePath string
FPath string
FExt string
}