Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Server ¶ added in v0.5.0
type Server struct { // Content is the CMS content. Content *cms.CMS // Sitemap is the sitemap generated from the content. Sitemap *sitemap.Sitemap // contains filtered or unexported fields }
Server is the Shifu server.
type ServerOptions ¶ added in v0.5.0
type ServerOptions struct { // Router is the router used by the server. If set, it will be used to attach the Shifu handlers. // Otherwise, a new router will be created. Router chi.Router // FuncMap will be merged with the default Shifu template function map. FuncMap template.FuncMap }
ServerOptions are the options for the Shifu Server.
Click to show internal directories.
Click to hide internal directories.