2024-08-02 18:30:32 +03:00
|
|
|
package kyra
|
2024-06-12 22:02:26 +03:00
|
|
|
|
2024-08-02 18:30:32 +03:00
|
|
|
import httpx "surdeus.su/core/xgo/v2/stdlib/http"
|
|
|
|
import "surdeus.su/util/kyra/mdx"
|
2024-06-12 22:02:26 +03:00
|
|
|
|
|
|
|
// 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
|
2024-06-12 22:02:26 +03:00
|
|
|
IndexSuffix string
|
2024-08-02 18:30:32 +03:00
|
|
|
PPExt string
|
|
|
|
SourcePath string
|
|
|
|
FPath string
|
|
|
|
FExt string
|
2024-06-12 22:02:26 +03:00
|
|
|
}
|